Return nil on 404

This commit is contained in:
n0vad3v 2022-08-12 18:09:46 +08:00 committed by Benny
parent 0fc34c0d33
commit 0ac97eee91

View File

@ -60,7 +60,7 @@ func convert(c *fiber.Ctx) error {
_ = c.Send([]byte(msg)) _ = c.Send([]byte(msg))
log.Warn(msg) log.Warn(msg)
_ = c.SendStatus(404) _ = c.SendStatus(404)
return errors.New(msg) return nil
} }
// generate with timestamp to make sure files are update-to-date // generate with timestamp to make sure files are update-to-date