mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Report failed fpm command
This commit is contained in:
parent
7141afc413
commit
70ca95844a
1 changed files with 5 additions and 1 deletions
|
@ -361,7 +361,11 @@ module.exports = (grunt) ->
|
|||
)
|
||||
console.log "fpm " + command.join(" ")
|
||||
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()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue