Bring nicer ui error if creds are missing in Gateway (#6003)

This commit is contained in:
Harshavardhana
2018-06-01 15:45:11 -07:00
committed by kannappanr
parent 69b9d6fbee
commit 537fd8c821
3 changed files with 13 additions and 12 deletions
+6
View File
@@ -54,6 +54,12 @@ var (
Secret key should be in between 8 and 40 characters.`,
)
uiErrEnvCredentialsMissing = newUIErrFn(
"Credentials missing",
"Please provide correct credentials",
`Access key and Secret key should be specified in Gateway mode from environment variables MINIO_ACCESS_KEY and MINIO_SECRET_KEY respectively.`,
)
uiErrInvalidErasureEndpoints = newUIErrFn(
"Invalid endpoint(s) in erasure mode",
"Please provide correct combination of local/remote paths",