mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: send extra error data
This commit is contained in:
parent
db5526f50e
commit
70042d8b7d
1 changed files with 5 additions and 5 deletions
|
|
@ -41,12 +41,12 @@ function reportError(
|
|||
return
|
||||
}
|
||||
|
||||
Sentry.captureException(error)
|
||||
if (extra) {
|
||||
Sentry.withScope(scope => {
|
||||
Sentry.withScope(scope => {
|
||||
if (extra) {
|
||||
Object.keys(extra).forEach(key => {
|
||||
scope.setExtra(key, extra[key])
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
Sentry.captureException(error)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue