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.
master
Andreas Linz 8 years ago committed by Anand Babu (AB) Periasamy
parent 50c328ff19
commit f5dfa895a5
  1. 2
      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.")
}

Loading…
Cancel
Save