From a4a8e0eee1544a3c8a51547ffb2cec10ca8e938c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 25 Jan 2012 17:09:49 +0100 Subject: [PATCH] [IMP] avoid losing error message when DOM parser fails to initialize in MSIE bzr revid: xmo@openerp.com-20120125160949-5pr4h7aquohykdn2 --- addons/web/static/lib/qweb/qweb2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js index 089b1812aa5..7d58b2492f7 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -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;