Improve path_surgery warning (#4293)

Stops output like:

Failed to find certbot.log in PATH: ...
renew-hook command certbot.log exists, but is not executable.
This commit is contained in:
Brad Warren 2017-03-06 17:32:49 -08:00 committed by Jacob Hoffman-Andrews
parent 4a2582dda4
commit 82736e21d4

View file

@ -33,6 +33,6 @@ def path_surgery(cmd):
return True
else:
expanded = " expanded" if any(added) else ""
logger.warning("Failed to find %s in%s PATH: %s", cmd,
logger.warning("Failed to find executable %s in%s PATH: %s", cmd,
expanded, path)
return False