Skip to content

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

Open
@micalevisk

Description

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);

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions