fix(sentry): send unwrapped error to sentry instead of http error
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2024-03-03 17:36:57 +01:00
parent fe27dd59ad
commit f5b90517c4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -156,10 +156,10 @@ func setupSentry(e *echo.Echo) {
if hub != nil {
hub.WithScope(func(scope *sentry.Scope) {
scope.SetExtra("url", c.Request().URL)
hub.CaptureException(err)
hub.CaptureException(herr.Internal)
})
} else {
sentry.CaptureException(err)
sentry.CaptureException(herr.Internal)
log.Debugf("Could not add context for sending error '%s' to sentry", err.Error())
}
log.Debugf("Error '%s' sent to sentry", err.Error())