Commands that have multiple errors now produce cleaner log output#268
Commands that have multiple errors now produce cleaner log output#268ariporad merged 2 commits intoshelljs:masterfrom nfischer:MultipleErrorMessages
Conversation
|
Update: I updated the tests to support the new error output format (which has no trailing newline). I slightly modified the tests by moving the I added support for stderr. Error messages for commands will now be printed to stderr by default (which is more consistent with unix utilities). Also, Because stdout and stderr are no longer combined together into |
…rors are echoed to stderr. exec() supports a new stderr field.
Change `exec.output` to `exec.stdout` and deprecate `output`.
|
@ariporad This should be ready for review now. This deprecates the old |
There was a problem hiding this comment.
I think this is a duplicate line.
There was a problem hiding this comment.
Which does it duplicate? That's meant to replace the original !fs.existsSync(codeFile) line. It differs from the next line, which uses !fs.existsSync(stdoutFile)
|
I made one comment, but other than that, LGTM! |
|
LGTM! |
Commands that have multiple errors now produce cleaner log output
This is a fix for #267. The new behavior can be seen to be as such:
This is comparable to the Bash behavior:
Fixes #267, #209.