From 42bbc5dab61ea5a3a62dcdfd17507a2fd27995d8 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Fri, 27 Apr 2007 20:54:51 +0000 Subject: Improved error message. svn path=/trunk/webapp-config/; revision=35 --- WebappConfig/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WebappConfig') diff --git a/WebappConfig/config.py b/WebappConfig/config.py index 4a2b809..5b4cd10 100644 --- a/WebappConfig/config.py +++ b/WebappConfig/config.py @@ -55,7 +55,8 @@ class BashConfigParser(ConfigParser.SafeConfigParser): try: return ConfigParser.SafeConfigParser.get(self, section, option) except Exception, e: - error = '\nThere is a problem with your configuration file.\n' \ + error = '\nThere is a problem with your configuration file or' \ + ' an environment variable.\n' \ 'webapp-config tried to read the variable "' + str(option) \ + '"\nand received the following error:\n\n' + str(e) + \ '\nPlease note that webapp-config is not written in bash ' \ -- cgit v1.2.3-65-gdbad