Skip to content

Commit 1e6ac51

Browse files
committed
new error?
1 parent 91644aa commit 1e6ac51

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-
// Sentry.captureException(error)
15-
throw Sentry.captureEvent({
16-
message: error,
17-
stacktrace: error.stacktrace,
18-
name: error.name,
19-
})
14+
Sentry.captureException(new Error(error))
15+
// Sentry.captureEvent({
16+
// message: error,
17+
// stacktrace: error.stacktrace,
18+
// name: error.name,
19+
// })
2020
})
2121
}
2222

0 commit comments

Comments
 (0)