log errors to console to trigger a red screen fixes #44
- only the first logged error is shown in red screen, so need to real cause of problem logged in first error message
This commit is contained in:
parent
00b57b87a5
commit
ee2eeb6538
|
@ -79,7 +79,6 @@ function customEval(url, javascript, success, error) {
|
|||
});
|
||||
success();
|
||||
} catch (e) {
|
||||
console.error('Evaluation error in: ' + url);
|
||||
console.error(e);
|
||||
error();
|
||||
}
|
||||
|
@ -109,7 +108,6 @@ function asyncImportScripts(url, success, error) {
|
|||
return customEval(url, responseText, success, error);
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error loading script, please check your config setup.');
|
||||
console.error(error);
|
||||
return error();
|
||||
});
|
||||
|
@ -124,6 +122,7 @@ function syncImportScripts(url, success, error) {
|
|||
});
|
||||
success();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
error()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue