diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-11-04 23:33:49 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-11-04 23:33:49 +0000 |
commit | 376aaeb3a8973944ae24f5a4b053dc87676315a7 (patch) | |
tree | 68cfe660547466e0aae51a814cb8bd5eca7e4cd3 /src/lib | |
parent | c6739488e46214c3785503d220a0b3b7397a821f (diff) | |
download | bcfg2-376aaeb3a8973944ae24f5a4b053dc87676315a7.tar.gz bcfg2-376aaeb3a8973944ae24f5a4b053dc87676315a7.tar.bz2 bcfg2-376aaeb3a8973944ae24f5a4b053dc87676315a7.zip |
Improve importscript error messages (Patch from Kamil Kiseil)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4961 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rwxr-xr-x | src/lib/Server/Reports/importscript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Reports/importscript.py b/src/lib/Server/Reports/importscript.py index e1ae52efb..78d1af4d0 100755 --- a/src/lib/Server/Reports/importscript.py +++ b/src/lib/Server/Reports/importscript.py @@ -5,8 +5,8 @@ __revision__ = '$Revision$' import os, sys, binascii try: import Bcfg2.Server.Reports.settings -except: - sys.stderr.write("Failed to load configuration settings. is /etc/bcfg2.conf readable?") +except Exception, e: + sys.stderr.write("Failed to load configuration settings. %s\n" % e) sys.exit(1) project_directory = os.path.dirname(Bcfg2.Server.Reports.settings.__file__) |