Raise exception rather than log xml parsing error.

This commit is contained in:
Cole Robinson 2008-09-30 11:32:28 -04:00
parent b1d959074f
commit 223626157b
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ class vmmDomain(gobject.GObject):
ctx = doc.xpathNewContext()
ret = parse_function(ctx)
except Exception, e:
logging.debug("Error parsing domain xml: %s" % str(e))
raise RuntimeError(_("Error parsing domain xml: %s") % str(e))
finally:
if ctx:
ctx.xpathFreeContext()