From 2c1bcc5b11bdae6411e5e45a0e9a2190c97c00c2 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 2 Oct 2015 08:37:35 +0200 Subject: [FIX] web: display error when js modules fails Up to this commit, the JS module system only notified failed modules as an 'information' instead of an 'error'. This was annoying, since the runbot takes the result into account, and might be green even though a module failed to load. --- addons/web/static/src/js/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/boot.js') diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 34abca7ef03..1f830ef254f 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -192,7 +192,7 @@ if (odoo.debug && !_.isEmpty(debug_jobs)) log.push('\nDebug: ', debug_jobs); if (odoo.debug || !_.isEmpty(failed) || !_.isEmpty(unloaded)) { - console[_.isEmpty(unloaded) ? 'info' : 'error'].apply(console, log); + console[_.isEmpty(failed) || _.isEmpty(unloaded) ? 'info' : 'error'].apply(console, log); } } }, -- cgit v1.2.3