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

Consider adding cause as an alias to UnauthorizedError #329

Open
SimonSchick opened this issue May 31, 2023 · 0 comments
Open

Consider adding cause as an alias to UnauthorizedError #329

SimonSchick opened this issue May 31, 2023 · 0 comments

Comments

@SimonSchick
Copy link

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.

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