Skip to content

Commit be56acf

Browse files
committed
- add error logging
1 parent ec09c78 commit be56acf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ func main() {
102102
}
103103

104104
log.Println(fmt.Sprintf("Listening on %s, serving %s, in %s mode", port, root, mode))
105-
router.Run(fmt.Sprintf(":%s", port))
105+
err := router.Run(fmt.Sprintf(":%s", port))
106+
if err != nil {
107+
log.Fatal(err)
108+
}
106109
}
107110

108111
func handlerCreator(key string) func(c *gin.Context) {

0 commit comments

Comments
 (0)