From 270817c02256b44648dcf48a3cfb5e19cac90791 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sat, 22 Oct 2016 15:35:01 -0600 Subject: [PATCH] Clarify error message when LOCALE cannot be set Fixes #1906 --- pelican/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pelican/settings.py b/pelican/settings.py index a996bf41..f1142077 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -275,7 +275,9 @@ def configure_settings(settings): except locale.Error: pass else: - logger.warning("LOCALE option doesn't contain a correct value") + logger.warning( + "Locale could not be set. Check the LOCALE setting, ensuring it " + "is valid and available on your system.") if ('SITEURL' in settings): # If SITEURL has a trailing slash, remove it and provide a warning