mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
errors: Use shared class for message when email is already in use.
Replaces "Email '{email}' already in use" with "Email is already in use."
This commit is contained in:
@@ -756,3 +756,13 @@ class CannotManageDefaultChannelError(JsonableError):
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("You do not have permission to change default channels.")
|
||||
|
||||
|
||||
class EmailAlreadyInUseError(JsonableError):
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("Email is already in use.")
|
||||
|
||||
Reference in New Issue
Block a user