mirror of
https://github.com/minio/minio.git
synced 2025-11-22 02:35:30 -05:00
Reword missing credentials error msg (#6418)
Enhance a little bit the error message that is showing when access & secret keys are not specified in the environment when running Minio in gateway and server mode. This commit also removes a redundant check of access/secret keys.
This commit is contained in:
committed by
Nitish Tiwari
parent
19202bae81
commit
92bc7caf7a
@@ -271,7 +271,7 @@ func serverMain(ctx *cli.Context) {
|
||||
logger.Info(`Supplying credentials from your 'config.json' is **DEPRECATED**, Access key and Secret key in distributed server mode is expected to be specified with environment variables MINIO_ACCESS_KEY and MINIO_SECRET_KEY. This approach will become mandatory in future releases, please migrate to this approach soon.`)
|
||||
} else {
|
||||
// Credential is not available anywhere by both means, we cannot start distributed setup anymore, fail eagerly.
|
||||
logger.Fatal(uiErrEnvCredentialsMissingServer(nil), "Unable to initialize distributed Minio server.")
|
||||
logger.Fatal(uiErrEnvCredentialsMissingDistributed(nil), "Unable to initialize the server in distributed mode")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user