Skip to content

Commit

Permalink
fix: avoid logging timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 6, 2023
1 parent 8d1b840 commit b376684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function uploadToProviders(providers: string[], type: ProviderTyp
} catch (e: any) {
if (e instanceof Error) {
capture(e, { name });
} else {
} else if (e?.message !== 'Request timed out') {
capture(new Error(`Error from ${name} provider`), {
contexts: { provider_response: e }
});
Expand Down

0 comments on commit b376684

Please sign in to comment.