Feat: optimize error desc (#152)
This commit is contained in:
parent
a7c40a07d8
commit
9a5ae9f51f
15 changed files with 119 additions and 55 deletions
|
|
@ -90,8 +90,8 @@ class ProviderTokenApi(Resource):
|
|||
configs=args['token']
|
||||
)
|
||||
token_is_valid = True
|
||||
except ValidateFailedError:
|
||||
token_is_valid = False
|
||||
except ValidateFailedError as ex:
|
||||
raise ValueError(str(ex))
|
||||
|
||||
base64_encrypted_token = ProviderService.get_encrypted_token(
|
||||
tenant=current_user.current_tenant,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue