mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 01:12:50 +03:00
Add try catch to ensure dev error shows up even if console logging it fails.
This commit is contained in:
parent
45126cdf1f
commit
da08e1e1b3
@ -354,9 +354,13 @@ var delay = 20;
|
||||
* @param {RootObject} error
|
||||
*/
|
||||
function showError(error) {
|
||||
restoreColorConsole(error).forEach((error) => {
|
||||
console.log.apply(this, error);
|
||||
});
|
||||
try {
|
||||
restoreColorConsole(error).forEach((error) => {
|
||||
console.log.apply(this, error);
|
||||
});
|
||||
} catch (e) {
|
||||
console.log("Error", error);
|
||||
}
|
||||
hideCompiling("fast");
|
||||
setTimeout(function () {
|
||||
showError_(restoreColorHtml(error));
|
||||
|
Loading…
Reference in New Issue
Block a user