Print xml with exception

This commit is contained in:
Cédric Krier committed 2008-04-25 12:49:34 +02:00
1 parent 8795318f91
commit 5fa070d030
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ class View(OSV):
ValidatingReader.parseString(xml)
except Exception, exception:
logger.notify_channel('ir', LOG_ERROR,
'Invalid xml view: %s' % (str(exception)))
'Invalid xml view: %s' % (str(exception) + '\n' + xml))
return False
except:
logger.notify_channel('ir', LOG_WARNING,