Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp which remove the exception message from base message otherwise the same exception message display twice like this https://ibb.co/XyFWMdz . Change-Id: Ia9b66536afe2c0122b652c58d9e11235f962a71c
This commit is contained in:
parent
9b5ea99863
commit
f494ec1941
@ -47,7 +47,7 @@ class UpdateForm(forms.SelfHandlingForm):
|
||||
LOG.error('Error updating host: %s', e)
|
||||
exceptions.handle(request,
|
||||
message="An error occurred while updating this"
|
||||
" host: %s. Please try again." % e)
|
||||
" host. Please try again.")
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(UpdateForm, self).clean()
|
||||
|
@ -208,7 +208,7 @@ class CreateForm(forms.SelfHandlingForm):
|
||||
LOG.error('Error submitting lease: %s', e)
|
||||
exceptions.handle(request,
|
||||
message='An error occurred while creating this '
|
||||
'lease: %s. Please try again.' % e)
|
||||
'lease. Please try again.')
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(CreateForm, self).clean()
|
||||
@ -313,7 +313,7 @@ class UpdateForm(forms.SelfHandlingForm):
|
||||
LOG.error('Error updating lease: %s', e)
|
||||
exceptions.handle(request,
|
||||
message="An error occurred while updating this"
|
||||
" lease: %s. Please try again." % e)
|
||||
" lease. Please try again.")
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(UpdateForm, self).clean()
|
||||
|
Loading…
Reference in New Issue
Block a user