diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-17 21:53:54 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-17 21:53:54 +0200 |
commit | e879896b4e408dbb8336f842f7a793a657caf0e8 (patch) | |
tree | fe1580292520427976e3276c855b0b38afbb3523 /rteval/xmlout.py | |
parent | 3ddac64e2223cc41e90115f8513c7dd1e6e928f5 (diff) | |
download | rteval-e879896b4e408dbb8336f842f7a793a657caf0e8.tar.gz rteval-e879896b4e408dbb8336f842f7a793a657caf0e8.tar.xz rteval-e879896b4e408dbb8336f842f7a793a657caf0e8.zip |
Added more info useful when debugging
Diffstat (limited to 'rteval/xmlout.py')
-rw-r--r-- | rteval/xmlout.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rteval/xmlout.py b/rteval/xmlout.py index cedaa91..c7d2159 100644 --- a/rteval/xmlout.py +++ b/rteval/xmlout.py @@ -21,7 +21,7 @@ class XMLOut(object): def __del__(self): if self.level > 0: - raise RuntimeError, "XMLOut: open blocks at close" + raise RuntimeError, "XMLOut: open blocks at __del__ (last opened '%s')" % self.currtag.name self.xmldoc.freeDoc() def __setup_tag_trans(self): @@ -96,7 +96,7 @@ class XMLOut(object): if self.status == 3: raise RuntimeError, "XMLOut: XML document already closed" if self.level > 0: - raise RuntimeError, "XMLOut: open blocks at close" + raise RuntimeError, "XMLOut: open blocks at close() (last opened '%s')" % self.currtag.name if self.status == 1: # Only set the root node in the doc on created reports (NewReport called) self.xmldoc.setRootElement(self.xmlroot) |