From f4dd66040351a075bf9a86d9e9b779e6fdf09722 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Tue, 1 Dec 2015 16:47:50 -0800 Subject: [PATCH] Oops! - Finish a partial commit, providing what are perhaps excessively detailed and mystical errors in improbable cases. --- letsencrypt/plugins/webroot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/letsencrypt/plugins/webroot.py b/letsencrypt/plugins/webroot.py index 705f08113..e63cf31d4 100644 --- a/letsencrypt/plugins/webroot.py +++ b/letsencrypt/plugins/webroot.py @@ -74,7 +74,10 @@ to serve all files under specified web root ({0}).""" try: path = self.full_roots[achall.domain] except IndexError: - raise errors.PluginError("Cannot find webroot path for domain: {1}" + raise errors.PluginError("Missing --webroot-path for domain: {1}" + .format(achall.domain)) + if not os.path.exists(path): + raise errors.PluginError("Mysteriously missing path {0} for domain: {1}" .format(path, achall.domain)) return os.path.join(path, achall.chall.encode("token"))