Skip to content

Commit 5022412

Browse files
committed
main: update
1 parent 111d44b commit 5022412

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elaina.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func main() {
2525
logrus.WithError(err).Fatal("Failed to connect to database")
2626
}
2727

28-
r := route.New(dbInstance)
28+
r, err := route.New(dbInstance)
29+
if err != nil {
30+
logrus.WithError(err).Fatal("Failed to create route")
31+
}
2932
r.Run(*port)
3033
}

0 commit comments

Comments
 (0)