Skip to content

Commit

Permalink
fix: ignore fetch error from test endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jan 17, 2024
1 parent 74f3c24 commit 376288a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ router.get('/test', async (req, res) => {

return res.json({ url, success: true });
} catch (e: any) {
if (e.code !== 'ERR_INVALID_URL') {
if (e.code !== 'ERR_INVALID_URL' && e.name !== 'FetchError') {
capture(e);
}

Expand Down

0 comments on commit 376288a

Please sign in to comment.