From 04b84cc8405cefbe87e75fd8fcfaac748be1a9e6 Mon Sep 17 00:00:00 2001 From: Hector Date: Sun, 18 Sep 2022 21:26:22 +0100 Subject: [PATCH] fix: report failure when server fails to start (#23) Exit with an error when the server startup reports an error. For example, when the server fails to bind to the provided port. --- src/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exporter.go b/src/exporter.go index 95af1e0..449f5ac 100644 --- a/src/exporter.go +++ b/src/exporter.go @@ -85,7 +85,7 @@ func main() { log.Print("ready") err := <-svrErr - log.Print(err) + log.Fatal(err) } }