add domain name when having issues in the warn output (#5105)

This commit is contained in:
Noah Swartz 2017-09-15 16:51:06 -07:00 committed by Brad Warren
parent d3a00a97a3
commit 03624fa9db

View file

@ -86,10 +86,11 @@ def _vhost_menu(domain, vhosts):
choices, force_interactive=True)
except errors.MissingCommandlineFlag:
msg = (
"Encountered vhost ambiguity but unable to ask for user "
"Encountered vhost ambiguity when trying to find a vhost for "
"{0} but was unable to ask for user "
"guidance in non-interactive mode. Certbot may need "
"vhosts to be explicitly labelled with ServerName or "
"ServerAlias directives.")
"ServerAlias directives.".format(domain))
logger.warning(msg)
raise errors.MissingCommandlineFlag(msg)