diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-04-15 20:10:17 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-16 12:50:05 +0200 |
commit | a9f518c901459e42afc76871dab9867967e9fa23 (patch) | |
tree | 039da3b7206947dec05cdf4fbe6ccdf809c98db3 /test/pseudo-tty/test-fatal-error.out | |
parent | ac2f2cd919ec549f908d3eb0b7fc8a6726a0ac25 (diff) | |
download | android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.tar.gz android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.tar.bz2 android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.zip |
process: inspect error in case of a fatal exception
This makes sure that errors that shut down the application are
inspected with `util.inspect()`. That makes sure that all extra
properties on the error will be visible and also that the stack trace
is highlighted (Node.js internal frames will be grey and node modules
are underlined).
PR-URL: https://github.com/nodejs/node/pull/27243
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/pseudo-tty/test-fatal-error.out')
-rw-r--r-- | test/pseudo-tty/test-fatal-error.out | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-fatal-error.out b/test/pseudo-tty/test-fatal-error.out new file mode 100644 index 0000000000..6114d7d9b0 --- /dev/null +++ b/test/pseudo-tty/test-fatal-error.out @@ -0,0 +1,14 @@ +*test-fatal-error.js:* +throw err; +^ + +TypeError: foobar + at Object.<anonymous> (*test-fatal-error.js:*) +*[90m at *(internal*loader.js:*:*)*[39m +*[90m at *(internal*loader.js:*:*)*[39m +*[90m at *(internal*loader.js:*:*)*[39m +*[90m at *(internal*loader.js:*:*)*[39m +*[90m at *[39m +*[90m at *[39m { + bla: *[33mtrue*[39m +} |