[IMP] avoid losing error message when DOM parser fails to initialize in MSIE

bzr revid: xmo@openerp.com-20120125160949-5pr4h7aquohykdn2
This commit is contained in:
Xavier Morel
2012-01-25 17:09:49 +01:00
parent 26374d8db5
commit a4a8e0eee1
+2 -1
View File
@@ -301,7 +301,8 @@ QWeb2.Engine = (function() {
// new ActiveXObject("Msxml2.DOMDocument.4.0");
xDoc = new ActiveXObject("MSXML2.DOMDocument");
} catch (e) {
return this.tools.exception("Could not find a DOM Parser");
return this.tools.exception(
"Could not find a DOM Parser: " + e.message);
}
xDoc.async = false;
xDoc.preserveWhiteSpace = true;