Add try catch to ensure dev error shows up even if console logging it fails.

This commit is contained in:
Dillon Kearns 2022-02-23 14:39:17 -08:00
parent 45126cdf1f
commit da08e1e1b3

View File

@ -354,9 +354,13 @@ var delay = 20;
* @param {RootObject} error
*/
function showError(error) {
try {
restoreColorConsole(error).forEach((error) => {
console.log.apply(this, error);
});
} catch (e) {
console.log("Error", error);
}
hideCompiling("fast");
setTimeout(function () {
showError_(restoreColorHtml(error));