mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05: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 New Issue
Block a user