Add exception message when user 'Create Application Credential'
When User tries to 'Create Application Credential' with a past/old date, User get an error message "Unable to create application credential" on horizon but IMO we need to raise an error message like keystone "The 'expires_at' date must not be before now". This patch corrects the error message. Change-Id: I16e1a6c1bee39aa16b4f1507291f782b0bb80be7 Closes-Bug: #1838606
This commit is contained in:
parent
54e34fc841
commit
cbeb92fa45
@ -104,9 +104,9 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
|
||||
msg = (_('Application credential name "%s" is already used.')
|
||||
% data['name'])
|
||||
messages.error(request, msg)
|
||||
except Exception:
|
||||
exceptions.handle(request,
|
||||
_('Unable to create application credential.'))
|
||||
except Exception as ex:
|
||||
exceptions.handle(
|
||||
request, _('Unable to create application credential: %s') % ex)
|
||||
|
||||
|
||||
class CreateSuccessfulForm(forms.SelfHandlingForm):
|
||||
|
Loading…
x
Reference in New Issue
Block a user