From 0ac97eee91b9ec89ef4f945f0ce0ca2b50692a7e Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Fri, 12 Aug 2022 18:09:46 +0800 Subject: [PATCH] Return nil on 404 --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 8e08a55..0059a12 100644 --- a/router.go +++ b/router.go @@ -60,7 +60,7 @@ func convert(c *fiber.Ctx) error { _ = c.Send([]byte(msg)) log.Warn(msg) _ = c.SendStatus(404) - return errors.New(msg) + return nil } // generate with timestamp to make sure files are update-to-date