Merge "Add exception message when user 'Create Application Credential'"

This commit is contained in:
Zuul 2019-08-19 19:06:25 +00:00 committed by Gerrit Code Review
commit 279d4282e1

@ -104,9 +104,9 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
msg = (_('Application credential name "%s" is already used.') msg = (_('Application credential name "%s" is already used.')
% data['name']) % data['name'])
messages.error(request, msg) messages.error(request, msg)
except Exception: except Exception as ex:
exceptions.handle(request, exceptions.handle(
_('Unable to create application credential.')) request, _('Unable to create application credential: %s') % ex)
class CreateSuccessfulForm(forms.SelfHandlingForm): class CreateSuccessfulForm(forms.SelfHandlingForm):