Skip to content

Commit 9b83dc7

Browse files
committed
add Sentry.captureEvent for testing
1 parent db63d96 commit 9b83dc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/api/base.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export const fetcher = (url, token) => {
1212
.catch(error => {
1313
console.log({ error })
1414
Sentry.captureException(error)
15+
Sentry.captureEvent({
16+
message: error,
17+
stacktrace: error.stacktrace,
18+
name: error.name,
19+
})
1520
})
1621
}
1722

0 commit comments

Comments
 (0)