Throw the fatal exception instead of logging it
authorRaphaël Jakse <raphael.jakse@univ-grenoble-alpes.fr>
Sun, 5 Apr 2020 08:24:14 +0000 (10:24 +0200)
committerRaphaël Jakse <raphael.jakse@univ-grenoble-alpes.fr>
Sun, 5 Apr 2020 08:24:14 +0000 (10:24 +0200)
trivabble.js

index d13187374d2063037b00b41ea3232779534f1255..0b7663498ceefc6539791db70170eae15ed8c91b 100644 (file)
     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 () {
                 document.getElementById("panel").lastChild.textContent = _("To continue playing, click here");
             }
         );
+        throw e;
     }
 
     function jsonError(json, e) {