Author: chrisz
Date: Mon Feb 21 14:45:19 2011
New Revision: 8155
Log:
Better error messages when loading of FAM modules failes.
Modified:
Webware/trunk/WebKit/AutoReloadingAppServer.py
Modified: Webware/trunk/WebKit/AutoReloadingAppServer.py
==============================================================================
--- Webware/trunk/WebKit/AutoReloadingAppServer.py Mon Feb 21 14:15:14 2011 (r8154)
+++ Webware/trunk/WebKit/AutoReloadingAppServer.py Mon Feb 21 14:45:19 2011 (r8155)
@@ -47,6 +47,9 @@
fam = __import__(module)
except ImportError:
fam = None
+ except Exception, e:
+ print "Error loading %s: %s" % (module, str(e))
+ fam = None
if not fam:
continue
@@ -216,7 +219,7 @@
try:
return FAM()
except Exception, e:
- print "Error loading %s: %s" % (FAM.name(), str(e))
+ print "Error starting %s: %s" % (FAM.name(), str(e))
FAM = None
fam = None
@@ -289,7 +292,7 @@
self._fam = getFAM(famModules)
self._pipe = None
except Exception, e:
- print "Error loading FAM: %" % str(e)
+ print "Error loading FAM: %s" % str(e)
self._fam = None
if not self._fam:
print 'FAM not available, fall back to polling.'
|