* more informative error msg

This commit is contained in:
Eray Özkural
2005-09-24 16:26:39 +00:00
parent 119b86dcd2
commit 90ed05e1bb
+4 -2
View File
@@ -507,8 +507,10 @@ class XmlFile(object):
f.close()
def verifyRootTag(self):
if self.dom.documentElement.tagName != self.rootTag:
raise Error("Root tagname not " + self.rootTag + " as expected")
actual_roottag = self.dom.documentElement.tagName
if actual_roottag != self.rootTag:
raise Error("Root tagname %s not identical to %s as expected " %
(actual_roottag, self.rootTag) )
# construction helpers