|
From: <fcr...@us...> - 2012-01-01 03:31:16
|
Revision: 786
http://safekeep.svn.sourceforge.net/safekeep/?rev=786&view=rev
Author: fcrawford
Date: 2012-01-01 03:31:10 +0000 (Sun, 01 Jan 2012)
Log Message:
-----------
Better reporting of server configuration errors, similar to other exception handling
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2012-01-01 03:28:15 UTC (rev 785)
+++ safekeep/trunk/safekeep 2012-01-01 03:31:10 UTC (rev 786)
@@ -1725,7 +1725,14 @@
base_dir = home_dir
if len(cfglocs) > 0:
- cfgs = parse_locs(cfglocs)
+ try:
+ cfgs = parse_locs(cfglocs)
+ except Exception, ex:
+ if isinstance(ex, ConfigException):
+ error('CONFIG ERROR: %s' % (ex or ''), ex)
+ else:
+ error('ERROR: %s' % (ex or ''), ex)
+ sys.exit(2)
else:
cfgs = {}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|