We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91644aa commit 1e6ac51Copy full SHA for 1e6ac51
utils/api/base.js
@@ -11,12 +11,12 @@ export const fetcher = (url, token) => {
11
.then(res => res.data)
12
.catch(error => {
13
console.log({ error })
14
- // Sentry.captureException(error)
15
- throw Sentry.captureEvent({
16
- message: error,
17
- stacktrace: error.stacktrace,
18
- name: error.name,
19
- })
+ Sentry.captureException(new Error(error))
+ // Sentry.captureEvent({
+ // message: error,
+ // stacktrace: error.stacktrace,
+ // name: error.name,
+ // })
20
})
21
}
22
0 commit comments