Feat: optimize error desc (#152)

This commit is contained in:
John Wang authored and GitHub committed 2023-05-22 17:39:28 +08:00
1 parent a7c40a07d8
commit 9a5ae9f51f
15 files changed
+119 -55

No files matched your search

+2 -2
View File
@@ -21,11 +21,11 @@ class InvalidInvitationCodeError(BaseHTTPException):
class AccountAlreadyInitedError(BaseHTTPException):
error_code = 'account_already_inited'
description = "Account already inited."
description = "The account has been initialized. Please refresh the page."
code = 400
class AccountNotInitializedError(BaseHTTPException):
error_code = 'account_not_initialized'
description = "Account not initialized."
description = "The account has not been initialized yet. Please proceed with the initialization process first."
code = 400