mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 12:55:08 +02:00
show (caught) exceptions during import now as error for easier spotting
console.error instead of console.log
This commit is contained in:
@@ -202,7 +202,7 @@ window.app = {classes: {}};
|
||||
document.head.appendChild(script);
|
||||
})
|
||||
// catch and display, but not stop execution
|
||||
.catch((err) => { console.log(src+":\n\n"+err.message)});
|
||||
.catch((err) => { console.error(src+": "+err.message)});
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -215,10 +215,10 @@ window.app = {classes: {}};
|
||||
window.egw_LAB = window.egw_ready =
|
||||
legacy_js_import(include.filter((src) => src.match(legacy_js_regexp) !== null), window.egw_webserverUrl)
|
||||
.then(Promise.all(egw_modules.map(mod => import(window.egw_webserverUrl+'/api/js/jsapi/'+mod+'.js')
|
||||
.catch((err) => {console.log(rel_src+":\n\n"+err.message)}))))
|
||||
.catch((err) => {console.error(rel_src+": "+err.message)}))))
|
||||
.then(() => Promise.all(include.filter((src) => src.match(legacy_js_regexp) === null) //.reverse()
|
||||
.map(rel_src => import(window.egw_webserverUrl+'/'+rel_src)
|
||||
.catch((err) => {console.log(rel_src+":\n\n"+err.message)})
|
||||
.catch((err) => {console.error(rel_src+": "+err.message)})
|
||||
))).then(() =>
|
||||
{
|
||||
// We need to override the globalEval to mitigate potential execution of
|
||||
|
Reference in New Issue
Block a user