* more informative error msg
This commit is contained in:
+4
-2
@@ -507,8 +507,10 @@ class XmlFile(object):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def verifyRootTag(self):
|
def verifyRootTag(self):
|
||||||
if self.dom.documentElement.tagName != self.rootTag:
|
actual_roottag = self.dom.documentElement.tagName
|
||||||
raise Error("Root tagname not " + self.rootTag + " as expected")
|
if actual_roottag != self.rootTag:
|
||||||
|
raise Error("Root tagname %s not identical to %s as expected " %
|
||||||
|
(actual_roottag, self.rootTag) )
|
||||||
|
|
||||||
# construction helpers
|
# construction helpers
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user