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:
parent
1438cecfad
commit
e9b37c7578
1 changed files with 3 additions and 2 deletions
5
Cakefile
5
Cakefile
|
@ -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`'
|
||||
|
||||
|
|
Loading…
Reference in a new issue