Debugging, but also helpful errors...

This commit is contained in:
Peter Eckersley 2016-01-28 16:57:31 -08:00
parent c9c81ef015
commit bf7f9d2cc1
2 changed files with 1 additions and 2 deletions

View file

@ -317,4 +317,4 @@ def check_domain_sanity(domain):
# first and last char is not "-"
fqdn = re.compile("^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{2,63}$")
if not fqdn.match(domain):
raise errors.ConfigurationError("Requested domain is not a FQDN")
raise errors.ConfigurationError("Requested domain {0} is not a FQDN".format(domain))

View file

@ -1,6 +1,5 @@
"""Tests for letsencrypt.cli."""
import argparse
import copy
import itertools
import os
import shutil