mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Report failed fpm command
This commit is contained in:
@@ -361,7 +361,11 @@ module.exports = (grunt) ->
|
|||||||
)
|
)
|
||||||
console.log "fpm " + command.join(" ")
|
console.log "fpm " + command.join(" ")
|
||||||
proc = spawn "fpm", command, stdio: "inherit"
|
proc = spawn "fpm", command, stdio: "inherit"
|
||||||
proc.on "close", callback
|
proc.on "close", (code) ->
|
||||||
|
if code != 0
|
||||||
|
callback(new Error("exit code: #{code}"))
|
||||||
|
else
|
||||||
|
callback()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user