diff --git a/cmds/core-service/main.go b/cmds/core-service/main.go index 7c517341b..ad138887c 100644 --- a/cmds/core-service/main.go +++ b/cmds/core-service/main.go @@ -309,7 +309,11 @@ func RunHTTPServer(ctx context.Context, ctxCanceler func(), address, locality st if err != nil { return stacktrace.Propagate(err, "Error touching file to indicate service ready") } - readyFile.Close() + + err = readyFile.Close() + if err != nil { + return stacktrace.Propagate(err, "Error closing touched file to indicate service ready") + } logger.Info("Starting DSS HTTP server") return httpServer.ListenAndServe()