From 21f0fa1efd7ec70411eb2ffe7214388e6f950431 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sun, 5 Apr 2020 10:24:14 +0200 Subject: [PATCH] Throw the fatal exception instead of logging it --- trivabble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trivabble.js b/trivabble.js index d131873..0b76634 100644 --- a/trivabble.js +++ b/trivabble.js @@ -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) { -- 2.30.2