Merge "Add exception message when user 'Create Application Credential'"
This commit is contained in:
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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user