[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.
This commit is contained in:
Christophe Matthieu
2016-11-04 16:40:58 +01:00
committed by Géry Debongnie
parent 5f16a6f8ab
commit 2c1bcc5b11
+1 -1
View File
@@ -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);
}
}
},