mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-01 10:13:55 +02:00
Add error message when epp domain check fails
This commit is contained in:
parent
9877a9e635
commit
4f3deae198
1 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,8 @@ DOMAIN_API_MESSAGES = {
|
|||
" Contact us if you need help coming up with a domain.",
|
||||
"invalid": "Enter a domain using only letters, numbers, or hyphens (though we don't recommend using hyphens).",
|
||||
"success": "That domain is available!",
|
||||
"error": "Error finding domain availability.",
|
||||
"error": "Error finding domain availability. Please wait a few minutes and try again. If you continue \
|
||||
to receive this error after a few tries, contact help@get.gov",
|
||||
}
|
||||
|
||||
|
||||
|
@ -64,8 +65,8 @@ def check_domain_available(domain):
|
|||
else:
|
||||
# domain search string doesn't end with .gov, add it on here
|
||||
return Domain.available(domain + ".gov")
|
||||
except Exception:
|
||||
return False
|
||||
except Exception as err:
|
||||
return err
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue