From 5022412b053c876aca835e433b3c073f67439636 Mon Sep 17 00:00:00 2001 From: E99p1ant Date: Mon, 27 May 2024 02:27:11 +0800 Subject: [PATCH] main: update --- elaina.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elaina.go b/elaina.go index 78a53cb..48f5ab7 100644 --- a/elaina.go +++ b/elaina.go @@ -25,6 +25,9 @@ func main() { logrus.WithError(err).Fatal("Failed to connect to database") } - r := route.New(dbInstance) + r, err := route.New(dbInstance) + if err != nil { + logrus.WithError(err).Fatal("Failed to create route") + } r.Run(*port) }