diff --git a/main.go b/main.go index 0c4ed87..1ce919e 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,9 @@ func main() { app.Get("/:id", func(c *fiber.Ctx) error { val, err := client.Get(c.Params("id")).Result() if err != nil { - return c.SendString(err.Error()) + return c.Render("home", fiber.Map{ + "ERR": "404 URL not found", + }) } return c.Redirect(val) })