satellite/console: add limit increase errors to getUserErrorMessage
Change-Id: Icc84b8d09d3c1edc3ae216b71812442d67e3b5c9
This commit is contained in:
parent
d60e0f0036
commit
0cc04208db
@ -1146,7 +1146,7 @@ func (a *Auth) getUserErrorMessage(err error) string {
|
|||||||
return "The MFA recovery code is not valid or has been previously used"
|
return "The MFA recovery code is not valid or has been previously used"
|
||||||
case console.ErrLoginCredentials.Has(err):
|
case console.ErrLoginCredentials.Has(err):
|
||||||
return "Your login credentials are incorrect, please try again"
|
return "Your login credentials are incorrect, please try again"
|
||||||
case console.ErrValidation.Has(err), console.ErrChangePassword.Has(err):
|
case console.ErrValidation.Has(err), console.ErrChangePassword.Has(err), console.ErrInvalidProjectLimit.Has(err), console.ErrNotPaidTier.Has(err):
|
||||||
return err.Error()
|
return err.Error()
|
||||||
case errors.Is(err, errNotImplemented):
|
case errors.Is(err, errNotImplemented):
|
||||||
return "The server is incapable of fulfilling the request"
|
return "The server is incapable of fulfilling the request"
|
||||||
|
Loading…
Reference in New Issue
Block a user