From bb0e8495d34e58128fbfa37ec03bc25a4cb60062 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sun, 29 Dec 2024 13:19:20 -0500 Subject: [PATCH] fix: Return only on 500 errors in error handler --- gateway/handlers/errors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/handlers/errors.go b/gateway/handlers/errors.go index 1f7177ce0..29dd434df 100644 --- a/gateway/handlers/errors.go +++ b/gateway/handlers/errors.go @@ -5,6 +5,7 @@ import ( "github.com/onsonr/sonr/gateway/context" ) +// AI! Fix this error handler to only return on 500 errors func ErrorHandler(err error, c echo.Context) { if he, ok := err.(*echo.HTTPError); ok { // Log the error if needed