From f5dfa895a5e02acf6e172e738e2fb7a7f107e010 Mon Sep 17 00:00:00 2001 From: Andreas Linz Date: Fri, 20 May 2016 11:05:52 +0200 Subject: [PATCH] Exit with error code if minio server fails to start (#1704) This commit replaces the call to `errorIf` with `fatalIf`, so that the minio server exits with an non-zero exit status if something fails, e.g. the port was already openend by another process. --- server-main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-main.go b/server-main.go index 935798d52..371d7a7a7 100644 --- a/server-main.go +++ b/server-main.go @@ -316,5 +316,5 @@ func serverMain(c *cli.Context) { // Fallback to http. err = apiServer.ListenAndServe() } - errorIf(err, "Failed to start minio server.") + fatalIf(err, "Failed to start minio server.") }