Skip to content

Commit 91644aa

Browse files
committed
throw the event instead?
1 parent afaf869 commit 91644aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/api/base.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export const fetcher = (url, token) => {
1111
.then(res => res.data)
1212
.catch(error => {
1313
console.log({ error })
14-
throw Sentry.captureException(error)
15-
// Sentry.captureEvent({
16-
// message: error,
17-
// stacktrace: error.stacktrace,
18-
// name: error.name,
19-
// })
14+
// Sentry.captureException(error)
15+
throw Sentry.captureEvent({
16+
message: error,
17+
stacktrace: error.stacktrace,
18+
name: error.name,
19+
})
2020
})
2121
}
2222

0 commit comments

Comments
 (0)