pretty-error
pretty-error copied to clipboard
See node.js errors with less clutter
As found here: https://github.com/nodejs/node/blob/e6dfd59be02c329228c050ad904e1eb046ff379f/lib/internal/bootstrap_node.js
I couldn't figure out a way to turn of line wrapping. In CSS it would be `white-space: nowrap`, but its seems in `RenderKid` you are setting a terminal width. My...
a little test (win10, node 6.9.1) shows: C:\l\Neuer Ordner\node_modules\license-compatibility-checker\index.js:12 f ^ [0m[97m[41mReferenceError[0m[90m:[0m[37m [0m[97mf is not defined[0m [0m [0m [0m [0m[90m-[0m [0m[93mindex.js[0m[90m:[0m[93m12[0m[37m [0m[37mObject.[0m [0m [0m [0m[90m[Neuer Ordner]/[license-compatibility-checker]/index.js:12:1[0m [0m [0m [0m [0m[90m-[0m...
It seems as though the error's message is stripped if a stack trace is present ([ParsedError.coffee:25](https://github.com/AriaMinaei/pretty-error/blob/master/src/ParsedError.coffee#L25)): ``` if typeof @_stack is 'string' @_parseStack() else @_message = @error.message? and String(@error.message) or...
Add next_tick.js to the node.js internal packages list
## Input: ```JS Error: something happened at test (:1:25) at :1:47 at EventEmitter.electron.ipcRenderer.on (/Users/sebi/jjd/js_package_nightmare-service/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js:52:28) at emitMany (events.js:127:13) at EventEmitter.emit (events.js:201:7) ``` ## Output: ```JS Error: something happened :1 test :1:25...
I want to use the error parser because I want to show the code frame. To skip packages which are filtered too It were nice there would be a way...
Filtering is very useful to cleanup the stacktrace. However often the stacktrace could be strange to read especially when there are anonymous entries. It would be nice if there were...
Stack traces are in generall have a not-ideal representation for CLI. If the stack is longer the message and the first trace item is at the beginning of the stack...