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

fix(common): loosen http exception cause type #11673

Merged
merged 1 commit into from Jun 12, 2023

Conversation

namoscato
Copy link
Contributor

PR Checklist

PR Type

  • Bugfix

What is the current behavior?

Issue Number: #11665

What is the new behavior?

Loose HttpExceptionOptions.cause type from Error to unknown.

Does this PR introduce a breaking change?

  • No

Other information

Per MDN documentation it seems this property can by of any type (given you can throw anything in JavaScript), so internal conditional logic seems unnecessary.

@kamilmysliwiec kamilmysliwiec merged commit efa9909 into nestjs:master Jun 12, 2023
1 of 2 checks passed
@namoscato namoscato deleted the fix-11665-error-cause-type branch June 12, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants