From bdd702384f4d4ed8812ac96e52593b85f546b66b Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sat, 20 Apr 2013 08:08:31 -0700 Subject: [PATCH] Improve wording of "cannot find" errors --- pelican/contents.py | 2 +- pelican/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/contents.py b/pelican/contents.py index 5b19c341..a5604856 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -310,6 +310,6 @@ def is_valid_content(content, f): content.check_properties() return True except NameError as e: - logger.error("Skipping %s: impossible to find information about " + logger.error("Skipping %s: could not find information about " "'%s'" % (f, e)) return False diff --git a/pelican/settings.py b/pelican/settings.py index 66dda1f4..30ba231c 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -160,7 +160,7 @@ def configure_settings(settings): if os.path.exists(theme_path): settings['THEME'] = theme_path else: - raise Exception("Impossible to find the theme %s" + raise Exception("Could not find the theme %s" % settings['THEME']) # if locales is not a list, make it one