Skip to content

Commit

Permalink
feat(bklogin): adjust error message tips
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Oct 27, 2023
1 parent 3140600 commit 8971c74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bk-login/bklogin/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ def wrap_plugin_error(self, context: PluginErrorContext, func: Callable, *func_a
try:
return func(*func_args, **func_kwargs)
except ParseRequestBodyError as e:
raise error_codes.INVALID_ARGUMENT.f(str(e))
raise error_codes.INVALID_ARGUMENT.f(str(e), replace=True)
except InvalidParamError as e:
raise error_codes.VALIDATION_ERROR.f(str(e))
raise error_codes.VALIDATION_ERROR.f(str(e), replace=True)
except UnexpectedDataError as e:
raise error_codes.UNEXPECTED_DATA_ERROR.f(str(e))
raise error_codes.UNEXPECTED_DATA_ERROR.f(str(e), replace=True)
except Exception:
logging.exception(
"idp(%s) request failed, when dispatch (%s, %s) to credential idp plugin(%s)",
Expand Down

0 comments on commit 8971c74

Please sign in to comment.