From 5bf880b0d0056c9372d935089f4b49f009d58ff8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 7 Feb 2023 16:42:00 +0100 Subject: [PATCH] cmd/antelope-api-healtcheck/main.go: exit with status 1 if srv.Run() fails. --- cmd/antelope-api-healtcheck/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/antelope-api-healtcheck/main.go b/cmd/antelope-api-healtcheck/main.go index 5f20e54..89262a9 100644 --- a/cmd/antelope-api-healtcheck/main.go +++ b/cmd/antelope-api-healtcheck/main.go @@ -202,5 +202,6 @@ func main() { // Run server if err := srv.Run(); err != nil { logger.Error("Server error", "error", err) + os.Exit(1) } }