Skip to content

Commit

Permalink
test throwing the error instead
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaevn committed Dec 4, 2023
1 parent 9b83dc7 commit afaf869
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/api/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export const fetcher = (url, token) => {
.then(res => res.data)
.catch(error => {
console.log({ error })
Sentry.captureException(error)
Sentry.captureEvent({
message: error,
stacktrace: error.stacktrace,
name: error.name,
})
throw Sentry.captureException(error)
// Sentry.captureEvent({
// message: error,
// stacktrace: error.stacktrace,
// name: error.name,
// })
})
}

Expand Down

0 comments on commit afaf869

Please sign in to comment.