From fa6db0c445fe5d625e4b3d6b9a6a1d1c800b8521 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Feb 2026 06:02:18 +0000 Subject: [PATCH] add error message on app exit, update go mod --- app/app.go | 3 ++- go.mod | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 3160d4d..6e2ebb9 100644 --- a/app/app.go +++ b/app/app.go @@ -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()) } diff --git a/go.mod b/go.mod index db0a3eb..0fd60ff 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.26.0 require ( github.com/gin-gonic/gin v1.11.0 - github.com/luthermonson/go-proxmox v0.3.2 + github.com/luthermonson/go-proxmox v0.4.0 ) require ( @@ -45,7 +45,7 @@ require ( go.uber.org/mock v0.6.0 // indirect golang.org/x/arch v0.24.0 // indirect golang.org/x/crypto v0.48.0 // indirect - golang.org/x/net v0.50.0 // indirect + golang.org/x/net v0.51.0 // indirect golang.org/x/sys v0.41.0 // indirect golang.org/x/text v0.34.0 // indirect google.golang.org/protobuf v1.36.11 // indirect