mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 06:56:33 +02:00
friendlier error message
This commit is contained in:
parent
d36e2e2a63
commit
d7493cc205
4 changed files with 8 additions and 9 deletions
|
@ -46,9 +46,8 @@ class AlreadyDomainInvitedError(InvitationError):
|
|||
class MissingEmailError(InvitationError):
|
||||
"""Raised when the requestor has no email associated with their account."""
|
||||
|
||||
def __init__(self, username):
|
||||
super().__init__(f"Can't send invitation email. No email is associated with the account for '{username}'.")
|
||||
self.username = username
|
||||
def __init__(self):
|
||||
super().__init__("Can't send invitation email. No email is associated with your user account.")
|
||||
|
||||
|
||||
class OutsideOrgMemberError(ValueError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue