bug fix: error message fix

- Error messages on web pages have been corrected.
before - Share Type %(id)s already exists. (HTTP 409)
after - Share Type name already exists. (HTTP 409)

- The issue suggested a hash as a solution, but I think it is more intuitive to print the name as a string.

Closes-Bug: #2069782

Change-Id: Ie3ef6a1da24abe000b9239c3d3fb22cace4ca9fc
Signed-off-by: Youngjun <yj.yoo@okestro.com>
(cherry picked from commit 528a64448f)
(cherry picked from commit f83bccc146)
(cherry picked from commit 5490dcab9a)
(cherry picked from commit 6dad1afca5)
(cherry picked from commit 10ae1a2f87)
This commit is contained in:
Youngjun
2024-06-23 01:16:10 +09:00
committed by Goutham Pacha Ravi
parent ab04a65fa9
commit 56dfe36294

View File

@ -214,7 +214,7 @@ class ShareTypesController(wsgi.Controller):
self._notify_share_type_error(context, 'share_type.create',
notifier_err)
raise webob.exc.HTTPConflict(explanation=err.message)
raise webob.exc.HTTPConflict(explanation=err.msg)
except exception.NotFound as err:
notifier_err = dict(share_types=share_type,
error_message=err.message)