Skip to content

Commit a3048ef

Browse files
committed
Throw errors instead of just logging them to console so that the consumer can catch them and control what happens
1 parent c1990e9 commit a3048ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const requestHandler = async (request, proxy, overrides = {}) => {
4040
body: response.body
4141
});
4242
} catch (error) {
43-
console.error(error)
4443
await request.abort();
44+
throw error;
4545
}
4646
};
4747

0 commit comments

Comments
 (0)