diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-10-02 08:37:35 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-11-04 16:40:58 +0100 |
| commit | 2c1bcc5b11bdae6411e5e45a0e9a2190c97c00c2 (patch) | |
| tree | 0642d53ed8341164190fb69c9c8c9757395b1fb0 /addons/web | |
| parent | 5f16a6f8abe9fdd62c869781dd2d3dde6d5db143 (diff) | |
[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.
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } }, |
