Skip to content
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

feature request: do not truncate the 'cause' value on errors #337

Open
micalevisk opened this issue Jul 2, 2024 · 0 comments
Open

feature request: do not truncate the 'cause' value on errors #337

micalevisk opened this issue Jul 2, 2024 · 0 comments

Comments

@micalevisk
Copy link

micalevisk commented Jul 2, 2024

It truncates the error cause lines

// app.js
require('source-map-support').install();
throw new Error('test 123', { cause: new Error('foo') })

current behavior

image

expected behavior

image

note that it's truncating the last lines

version

  • package: 0.5.21
  • nodejs: 22

that's because the line bellow won't display the cause as it doesn't belongs to the stack trace:

console.error(error.stack);

@micalevisk micalevisk changed the title wrongly truncating the stack trace on error with 'cause' value feature request: do not truncate the 'cause' value on errors Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant