Throw the fatal exception instead of logging it

This commit is contained in:
Raphaël Jakse 2020-04-05 10:24:14 +02:00
parent d5fd4c22a8
commit 21f0fa1efd
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,6 @@
var retriedImmediately = false;
function fatalError(e) {
console.error(e);
myConfirm(
_("Sorry, a problem just happened. The page must be reloaded. If the problem is not too serious, you should be able to keep playing normally. Otherwise, contact the person who is able to fix the problem. Click on “Yes” to reload the page."),
function () {
@ -468,6 +467,7 @@
document.getElementById("panel").lastChild.textContent = _("To continue playing, click here");
}
);
throw e;
}
function jsonError(json, e) {