mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-03 02:57:25 +02:00
Make class function for GenericError mapping
This commit is contained in:
parent
c3a23c23fa
commit
578f5bac1a
2 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,7 @@ DOMAIN_API_MESSAGES = {
|
|||
),
|
||||
"invalid": "Enter a domain using only letters, numbers, or hyphens (though we don't recommend using hyphens).",
|
||||
"success": "That domain is available!",
|
||||
"error": GenericError._error_mapping[GenericErrorCodes.CANNOT_CONTACT_REGISTRY],
|
||||
"error": GenericError.get_error_mapping(GenericErrorCodes.CANNOT_CONTACT_REGISTRY),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue