summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Core.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index daa439db1..05625cf22 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -230,12 +230,14 @@ class Core(Component):
continue
try:
self.Bind(entry, metadata)
- except PluginExecutionError:
+ except PluginExecutionError, exc:
if 'failure' not in entry.attrib:
- entry.set('failure', 'bind error')
+ entry.set('failure', 'bind error: %s' % exc)
logger.error("Failed to bind entry: %s %s" % \
(entry.tag, entry.get('name')))
- except:
+ except Exception, exc:
+ if 'failure' not in entry.attrib:
+ entry.set('failure', 'bind error: %s' % exc)
logger.error("Unexpected failure in BindStructure: %s %s" \
% (entry.tag, entry.get('name')), exc_info=1)