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:
Artur Girenko 2016-05-02 21:55:20 +02:00
parent 00b57b87a5
commit ee2eeb6538
1 changed files with 1 additions and 2 deletions

View File

@ -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()
}
}