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.
This commit is contained in:
Andreas Linz 2016-05-20 11:05:52 +02:00 committed by Anand Babu (AB) Periasamy
parent 50c328ff19
commit f5dfa895a5

View File

@ -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.")
}