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

Unclear how to throw an actual error #2176

Closed
1 task
theoephraim opened this issue Jun 12, 2024 · 1 comment
Closed
1 task

Unclear how to throw an actual error #2176

theoephraim opened this issue Jun 12, 2024 · 1 comment
Labels

Comments

@theoephraim
Copy link

Scope

Improves an existing behavior

Compatibility

  • This is a breaking change

Feature description

It seems all errors thrown in an interceptor are swallowed and turned into a request response.
What if I actually just want to throw an error? I did some digging in the source and the docs but couldn't quite figure it out.

Thanks!

@theoephraim
Copy link
Author

Apologies - I meant to open this on https://github.com/mswjs/interceptors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant