From 03624fa9dbe1a0dbb74e324a35ee0cda44234bc8 Mon Sep 17 00:00:00 2001 From: Noah Swartz Date: Fri, 15 Sep 2017 16:51:06 -0700 Subject: [PATCH] add domain name when having issues in the warn output (#5105) --- certbot-apache/certbot_apache/display_ops.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/certbot-apache/certbot_apache/display_ops.py b/certbot-apache/certbot_apache/display_ops.py index 7aec26f81..9529c1ab3 100644 --- a/certbot-apache/certbot_apache/display_ops.py +++ b/certbot-apache/certbot_apache/display_ops.py @@ -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)