Skip to content

Consider adding cause as an alias to UnauthorizedError  #329

Description

@SimonSchick

Describe the problem you'd like to have solved

The canonical property name is cause and this was also recently added to the NodeJS error constructor and is used in browsers as well

Describe the ideal solution

I propose adding cause in addition to inner to align these and to keep it a non-breaking change.

Alternatives and current work-arounds

None really, it's not that hard of an issue I think.

Additional context

None.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions