-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrettyPrint fails when error's stack is null #382
Comments
Did this work correctly in 4.14.0? |
just checked - works correctly in 4.14.0 - error introduced in 4.15.0 |
Ugh, I need to get the CLI revamp done. |
Anyway, this can be easily fixed with a small patch, @grbr would you like to do the honors? |
FYI, I have this accounted for in the upcoming separate prettifier: https://github.com/pinojs/pino-pretty/blob/95823e330698319b567b92754894dc564b8351db/index.js#L215 |
i've added pull request |
* Issue #382, pretty print error with null stack (#383) * fix issue #382 pretty print error with null stack * prints stack: "null" when error is a property * errors with a null stack, #382 * Bumped v4.15.4. * added lastTime meta parameter (#385) * Bumped v4.16.0. * Remove CLI and add robust prettifier support * Use required prettifier directly and tweak documentation * Address documentation concerns * Remove chalk * Add bin with deprecation notice * Add URL to deprecation notice * deprecated => removed * Move split2 to dev dependencies * Move asMetaWrapper into Pino and update pretty docs
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello!
I try to log an object like this:
and i get an error:
In pretty.js null is a matches for
'length' of null is
Please add null check
Best regards
The text was updated successfully, but these errors were encountered: