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

replaced nonexistant error event callback with a combination of stderr and exit events

This commit is contained in:
gfxmonk 2010-04-25 11:24:06 +10:00
parent 1438cecfad
commit e9b37c7578

View file

@ -6,8 +6,9 @@ CoffeeScript: require './lib/coffee-script'
# Run a CoffeeScript through our node/coffee interpreter.
run: (args) ->
proc: spawn 'bin/coffee', args
proc.addListener 'error', (err) -> if err then puts err
err: ""
proc.stderr.addListener 'data', (data) -> err += data
proc.addListener 'exit', (ex) -> puts err if ex != 0
option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'