Skip to content

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

Merged
kamilmysliwiec merged 1 commit intonestjs:masterfrom
namoscato:fix-11665-error-cause-type
Jun 12, 2023
Merged

fix(common): loosen http exception cause type#11673
kamilmysliwiec merged 1 commit intonestjs:masterfrom
namoscato:fix-11665-error-cause-type

Conversation

@namoscato
Copy link
Copy Markdown
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
@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.

3 participants