slightly improve error message

This commit is contained in:
steffen123 2010-08-29 20:46:01 +02:00
parent f6d5d2f9fc
commit 8efa4d5a9c

View File

@ -132,8 +132,8 @@ def get_config(file_name, fallback = True):
print msg print msg
logging.info(msg) logging.info(msg)
except: except:
print _("Error copying .example file, cannot fall back. Exiting.\n") print _("Error copying .example config file, cannot fall back. Exiting.\n")
sys.stderr.write(_("Error copying .example file, cannot fall back. Exiting.\n")) sys.stderr.write(_("Error copying .example config file, cannot fall back. Exiting.\n"))
sys.stderr.write( str(sys.exc_info()) ) sys.stderr.write( str(sys.exc_info()) )
sys.exit() sys.exit()
elif fallback: elif fallback: