Report failed fpm command

This commit is contained in:
James Allen 2014-05-28 12:42:49 +01:00
parent 7141afc413
commit 70ca95844a

View file

@ -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()