Skip to content

Commit

Permalink
fix network error filling up Sentry (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Nov 22, 2023
1 parent 2ab5b92 commit 55b3cf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ async function start (ctx) {
} catch (_err) {
const err = new Error(`Failed to parse core event: ${line}`)
err.cause = _err
Sentry.captureException(err)
if (!line.includes('failed to detect network')) {
Sentry.captureException(err)
}
console.error(err)
return
}
Expand Down

0 comments on commit 55b3cf3

Please sign in to comment.