Fixes error formatting, eliminating extra newlines caused by using util.error #84

Merged
merged 1 commit into from Apr 23, 2012

Projects

None yet

2 participants

@dylanmcd
Contributor

When node crashes, and it wants to put those little ^ underneath the offending line, it writes a series of buffers that trigger the data event for stderr multiple times. util.error automatically places a new line for each buffer that's written, even though those buffers are just whitespace. This causes a ton of new lines before the carets, often pushing the actual error line off screen, which gets a bit annoying after having to scroll up for the hundredth time. By directly calling process.stderr, the buffers get written without extra newlines.

@remy remy merged commit f4d28dd into remy:master Apr 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment