Skip to content

Commit 515a7e4

Browse files
committed
Errors should not be caught silently
1 parent 6df6748 commit 515a7e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/proxy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ const requestHandler = async (request, proxy, overrides = {}) => {
3535
headers: response.headers,
3636
body: response.body
3737
});
38-
} catch(error) {await request.abort()}
38+
} catch (error) {
39+
console.error(error)
40+
await request.abort();
41+
}
3942
};
4043

4144
// For reassigning proxy of page

0 commit comments

Comments
 (0)