From 8f3f4613c7030799511dd7e28745e8bc6d7f3603 Mon Sep 17 00:00:00 2001 From: Martin Koppehel Date: Wed, 4 Sep 2024 10:42:38 +0200 Subject: [PATCH] Exit when accountserver fails --- cmd/account-server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/account-server/main.go b/cmd/account-server/main.go index 16f5d99..122511a 100644 --- a/cmd/account-server/main.go +++ b/cmd/account-server/main.go @@ -81,6 +81,7 @@ func main() { go func() { if err := accountServer.Run(mainContext, os.Getenv("NATS_URL"), os.Getenv("NATS_CREDS_FILE")); err != nil { setupLog.Error(err, "Failed to run accountserver") + os.Exit(1) } }()