fix not working InfoLog index: synchronous request must return fulfilled promise

This commit is contained in:
Ralf Becker
2021-07-16 11:49:53 +02:00
parent b780c7ebd8
commit 50b8839609
2 changed files with 20 additions and 18 deletions

View File

@ -70,7 +70,8 @@ export function et2_loadXMLFromURL(_url : string, _callback? : Function, _contex
return xmldoc.children[0];
})
.catch((_err) => {
egw().debug('error', 'Loading eTemplate from '+_url+' failed! '+_err.status+' '+_err.statusText);
egw().message('Loading eTemplate from '+_url+' failed!'+"\n\n"+
(typeof _err.stack !== 'undefined' ? _err.stack : _err.status+' '+_err.statusText), 'error');
if(typeof _fail_callback === 'function') {
_fail_callback.call(_context, _err);
}