add error message on app exit, update go mod

This commit is contained in:
2026-02-26 06:02:18 +00:00
parent 354fa70856
commit fa6db0c445
2 changed files with 4 additions and 3 deletions

View File

@@ -188,5 +188,6 @@ func Run() {
})
log.Printf("[INFO] starting API listening on 0.0.0.0:%d", config.ListenPort)
router.Run("0.0.0.0:" + strconv.Itoa(config.ListenPort))
err := router.Run("0.0.0.0:" + strconv.Itoa(config.ListenPort))
log.Printf("[Err ] API ended unexpectedly: (%s)", err.Error())
}