[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:
committed by
Géry Debongnie
parent
5f16a6f8ab
commit
2c1bcc5b11
@@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user