mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
add domain name when having issues in the warn output (#5105)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user