summaryrefslogtreecommitdiff
path: root/addons/base/static/lib
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-07-12 11:11:31 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-07-12 11:11:31 +0200
commit2b47b7f69a89f220a05e82eae39b0525e4b72041 (patch)
treef1b1ab83b246af69fba25531ac6f00638e83e855 /addons/base/static/lib
parent8c761e24be272843fd53b4dd0f6ca5296502927d (diff)
[imp] added some debugging tools
bzr revid: nicolas.vanhoren@openerp.com-20110712091131-ixr36d9dyilfnoyj
Diffstat (limited to 'addons/base/static/lib')
-rw-r--r--addons/base/static/lib/qweb/qweb2.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/base/static/lib/qweb/qweb2.js b/addons/base/static/lib/qweb/qweb2.js
index e617df60183..4f136f3c98a 100644
--- a/addons/base/static/lib/qweb/qweb2.js
+++ b/addons/base/static/lib/qweb/qweb2.js
@@ -304,6 +304,7 @@ QWeb2.Engine = (function() {
" /* START TEMPLATE */ try {\n" +
(e.compile()) + "\n" +
" /* END OF TEMPLATE */ } catch(error) {\n" +
+ " if (console && console.exception) console.exception(error);\n" +
" context.engine.tools.exception('Runtime Error: ' + error, context);\n" +
" }\n" +
" return r.join('');";