mswjs/msw

Unclear how to throw an actual error

theoephraim opened this issue · 1 comments

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!

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