Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Feb 5, 2025
1 parent f66a045 commit fea8ac9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cli/alto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ if (process.env.SENTRY_DSN) {
const errorType = event.exception?.values?.[0]?.type

const shouldIgnore = SENTRY_IGNORE_ERRORS.some(
(error) =>
hint.originalException instanceof error ||
(error) =>{
return hint.originalException instanceof error ||
errorType === error.name
}
)
console.log("beforeSend", errorType, shouldIgnore, SENTRY_IGNORE_ERRORS.map(e => e.name).join(", "))


if (shouldIgnore) {
return null
Expand Down

0 comments on commit fea8ac9

Please sign in to comment.