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
1 changed files with 3 additions and 3 deletions

View File

@ -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):