diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-27 20:54:51 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-27 20:54:51 +0000 |
commit | 42bbc5dab61ea5a3a62dcdfd17507a2fd27995d8 (patch) | |
tree | 251fd7a2c4a68e7d2c4711a28e5dfa527405e1a9 | |
parent | Revert server installation check for now. (diff) | |
download | webapp-config-42bbc5dab61ea5a3a62dcdfd17507a2fd27995d8.tar.gz webapp-config-42bbc5dab61ea5a3a62dcdfd17507a2fd27995d8.tar.bz2 webapp-config-42bbc5dab61ea5a3a62dcdfd17507a2fd27995d8.zip |
Improved error message.
svn path=/trunk/webapp-config/; revision=35
-rw-r--r-- | WebappConfig/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ' \ |