Right now if there is an error such as `Unexpected identifier“ it goes to STDOUT, it should go to STDERR and the process should exit with an error code so that CI , npm test, … can detect something went wrong.
1 thought on “Errors should output to STDERR”
Comments are closed.
Could we consider re-opening this? Other tools, such as
webpacker
built into Ruby on Rails, have trouble printing outwebpack
related logs when there is a failure because these tools expect the errors to be onstderr
, notstdout
. See here for details.