소스 검색

Report failed fpm command

James Allen 12 년 전
부모
커밋
70ca95844a
1개의 변경된 파일과 5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      server-ce/Gruntfile.coffee

+ 5 - 1
server-ce/Gruntfile.coffee

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