Permalink
Browse files

Using process.stderr in command.coffee (fixes #1798)

  • Loading branch information...
1 parent 91cb433 commit c77f7737a5d94a05a999109810ea7634f540e1e2 @TrevorBurnham TrevorBurnham committed Oct 27, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/coffee-script/command.js
  2. +2 −2 src/command.coffee

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -17,12 +17,12 @@ CoffeeScript = require './coffee-script'
helpers.extend CoffeeScript, new EventEmitter
printLine = (line) -> process.stdout.write line + '\n'
-printWarn = (line) -> process.binding('stdio').writeError line + '\n'
+printWarn = (line) -> process.stderr.write line + '\n'
# The help banner that is printed when `coffee` is called without arguments.
BANNER = '''
Usage: coffee [options] path/to/script.coffee
-
+
If called without options, `coffee` will run your script.
'''

0 comments on commit c77f773

Please sign in to comment.