mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 18:38:29 +02:00
show (caught) exceptions during import now as error for easier spotting
console.error instead of console.log
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @author Andreas Stöckel (as AT stylite.de)
|
||||
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/*egw:uses
|
||||
@ -164,7 +163,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
const src = _jsFiles[0];
|
||||
promise = import(_prefix ? _prefix+src : src)
|
||||
.catch((err) => {
|
||||
console.log(src+":\n\n"+err.message);
|
||||
console.error(src+": "+err.message);
|
||||
});
|
||||
}
|
||||
else
|
||||
@ -172,7 +171,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
promise = Promise.all(_jsFiles.map((src) => {
|
||||
import(_prefix ? _prefix+src : src)
|
||||
.catch((err) => {
|
||||
console.log(src+":\n\n"+err.message);
|
||||
console.error(src+": "+err.message);
|
||||
})
|
||||
}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user