summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-09-29 18:17:49 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-09-29 18:17:49 +0000
commit1e1d708a8cd8227d3d8f4f4fabdc7b55f4c60997 (patch)
treecd5c4ca6c23a284e855b74cdac9ac855bfd007e4 /src/lib
parent5f4d8bc458c618ef715f1ccc6a2971e216cb79c3 (diff)
downloadbcfg2-1e1d708a8cd8227d3d8f4f4fabdc7b55f4c60997.tar.gz
bcfg2-1e1d708a8cd8227d3d8f4f4fabdc7b55f4c60997.tar.bz2
bcfg2-1e1d708a8cd8227d3d8f4f4fabdc7b55f4c60997.zip
add better error reporting
(Logical change 1.63) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@336 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 4d2a02fa6..930ea6de2 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -99,7 +99,10 @@ class Core(object):
def BindStructure(self, structure, metadata):
for entry in structure.getchildren():
- self.Bind(entry, metadata)
+ try:
+ self.Bind(entry, metadata)
+ except KeyError, k:
+ syslog(LOG_ERR, "Unable to locate %s %s"%k)
def Bind(self, entry, metadata):
g = [x for x in self.generators if x.__provides__.get(entry.tag, {}).has_key(entry.attrib['name'])]