Throw the fatal exception instead of logging it
This commit is contained in:
parent
d5fd4c22a8
commit
21f0fa1efd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue