Skip to content

Commit 8f3f461

Browse files
committed
Exit when accountserver fails
1 parent e3eba4a commit 8f3f461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/account-server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func main() {
8181
go func() {
8282
if err := accountServer.Run(mainContext, os.Getenv("NATS_URL"), os.Getenv("NATS_CREDS_FILE")); err != nil {
8383
setupLog.Error(err, "Failed to run accountserver")
84+
os.Exit(1)
8485
}
8586
}()
8687

0 commit comments

Comments
 (0)