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

Handle 'it broke woops' error #120

Merged
merged 5 commits into from
Nov 28, 2022
Merged

Conversation

patrickswijgman
Copy link
Collaborator

Expected behaviour

'it broke woops' error should be caught and not be unhandled in production code

Actual behaviour

the 'it broke woops' error leaks into production code because the thrown error is not correctly caught

Description of fix

changed from an throw to rejecting the promise the handler is in

@patrickswijgman patrickswijgman changed the title Fix/remove unnecessary error Handle 'it broke woops' error Nov 4, 2022
src/transport.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@Dagg-h Dagg-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@patrickswijgman patrickswijgman merged commit e91d7a8 into main Nov 28, 2022
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

Successfully merging this pull request may close these issues.

2 participants