mirror of
https://github.com/minio/minio
synced 2024-10-16 21:03:42 +00:00
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:
parent
50c328ff19
commit
f5dfa895a5
|
@ -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…
Reference in a new issue