From 7c402f21fb9956739937a068bc9e51cc2acac2d0 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sun, 19 Jul 2020 15:24:15 +0100 Subject: [PATCH] Better error catching 2 Former-commit-id: f6ae4a88645163388a077a50c2afde31a2c4bbac [formerly 89e82d5db250479ea1d67d954630105dda662aee] Former-commit-id: 761c788de343027f4329aa069058b45b2522ad3a --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index d21de19b..a2804c96 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -3114,8 +3114,8 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki return; } // Set a global error handler for iframe - window.frames[0].onerror = function (msg, url) { - console.log('Error caught in ZIM contents [' + url + ']:\n' + msg, msg); + window.frames[0].onerror = function (msg, url, line, col, error) { + console.error('Error caught in ZIM contents [' + url + ':' + line + ']:\n' + msg, error); return true; };