From 90ed05e1bb6dc9d6abbf90324fe4438911f2151f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sat, 24 Sep 2005 16:26:39 +0000 Subject: [PATCH] * more informative error msg --- pisi/xmlfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index e93540ab..0652cf32 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -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