mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
bf9d8e9214
So instead of: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ You will now see: path/to/foo.js:1 throw new Error('bar'); ^ This is a sub-set of isaacs patch here: https://github.com/joyent/node/issues/3235 The difference is that this patch purely adresses the exception output, but does not try to make any behavior changes / improvements.
7 lines
159 B
Plaintext
7 lines
159 B
Plaintext
before
|
|
|
|
*test*message*throw_custom_error.js:31
|
|
throw { name: 'MyCustomError', message: 'This is a custom message' };
|
|
^
|
|
MyCustomError: This is a custom message
|