From: Raphaël Jakse Date: Sun, 5 Apr 2020 08:24:14 +0000 (+0200) Subject: Throw the fatal exception instead of logging it X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=21f0fa1efd7ec70411eb2ffe7214388e6f950431;p=trivabble.git Throw the fatal exception instead of logging it --- 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) {