Commit b72e6fba authored by James Allen's avatar James Allen
Browse files

Report failed fpm command

parent b0a759ff
...@@ -361,7 +361,11 @@ module.exports = (grunt) -> ...@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment