truncated long domains in error messages; updated error messages

This commit is contained in:
David Kennedy 2023-11-02 15:37:35 -04:00
parent 3ff961cdac
commit e7a3001409
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 6 additions and 2 deletions

View file

@ -106,7 +106,9 @@ class NameserverError(Exception):
NameserverErrorCodes.MISSING_HOST: (
"Name server must be provided to enter IP address."
),
NameserverErrorCodes.INVALID_HOST: ("Name server, {}, is not valid."),
NameserverErrorCodes.INVALID_HOST: (
"Enter a name server in the required format, like ns1.example.com"
),
}
def __init__(self, *args, code=None, nameserver=None, ip=None, **kwargs):