Skip to content

Feature: Support cause property on errors #1401

Description

@Turbo87

Do you want to request a feature or report a bug?

feature

What is the current behavior?

try{somethingThatThrows();}catch(innerError){leterror=newError('something failed!');error.cause=innerError;throwerror;}

With the current behavior only the outer/wrapping Error is shown in the stack trace.

What is the desired behavior?

It would be great if the inner Error was also displayed in the stacktrace view, roughly similar to how it is done for Java and Python.

I'm happy to help implement this with a bit of guidance :)

  • does the serverside need changes or does it already support this due to support in Java?
  • what changes to the submitted payload are necessary?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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