From 4afc641ecda7b1ed5df35fd07ccfa23ca6b79147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borna=20Rajkovi=C4=87?= Date: Tue, 5 Aug 2025 19:30:44 +0200 Subject: [PATCH] Fixed exception handling --- api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.go b/api/api.go index 57f3807..f7207bf 100644 --- a/api/api.go +++ b/api/api.go @@ -12,13 +12,13 @@ import ( func NoMethod() gin.HandlerFunc { return func(c *gin.Context) { - c.AbortWithError(http.StatusNotFound, nil) + c.AbortWithStatus(http.StatusNotFound) } } func NoRoute() gin.HandlerFunc { return func(c *gin.Context) { - c.AbortWithError(http.StatusNotFound, nil) + c.AbortWithStatus(http.StatusNotFound) } }