From f5b90517c4f43141a1972bad0ac659fc3da3afae Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 3 Mar 2024 17:36:57 +0100 Subject: [PATCH] fix(sentry): send unwrapped error to sentry instead of http error --- pkg/routes/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index f9813850a..ce7c0fa26 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -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())