summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-11-04 23:33:49 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-11-04 23:33:49 +0000
commit376aaeb3a8973944ae24f5a4b053dc87676315a7 (patch)
tree68cfe660547466e0aae51a814cb8bd5eca7e4cd3 /src/lib
parentc6739488e46214c3785503d220a0b3b7397a821f (diff)
downloadbcfg2-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-xsrc/lib/Server/Reports/importscript.py4
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__)