1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fail with appropriate error status if child process fails

This commit is contained in:
gfxmonk 2010-04-26 16:08:19 +10:00
parent 2d1abd099d
commit 175ebb3cd8

View file

@ -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`'