From 175ebb3cd8daa5c5d199822b2be88b84c4e1fbeb Mon Sep 17 00:00:00 2001 From: gfxmonk Date: Mon, 26 Apr 2010 16:08:19 +1000 Subject: [PATCH] fail with appropriate error status if child process fails --- Cakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Cakefile b/Cakefile index a16a3cfe..6ace8745 100644 --- a/Cakefile +++ b/Cakefile @@ -7,6 +7,7 @@ CoffeeScript: require './lib/coffee-script' run: (args) -> proc: spawn 'bin/coffee', args proc.stderr.addListener 'data', (buffer) -> puts buffer.toString() + proc.addListener 'exit', (status) -> process.exit(1) if status != 0 option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'