From 80a80aef7a66816a6454c0f8b3953eb054481f7f Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Tue, 14 Apr 2015 14:01:14 +0200 Subject: [PATCH] Better debugging --- js/h5p-content-upgrade-process.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/h5p-content-upgrade-process.js b/js/h5p-content-upgrade-process.js index a7cc2cc..e86a66a 100644 --- a/js/h5p-content-upgrade-process.js +++ b/js/h5p-content-upgrade-process.js @@ -115,6 +115,11 @@ H5P.ContentUpgradeProcess = (function (Version) { }); } catch (err) { + if (console && console.log) { + console.log("Error", err.stack); + console.log("Error", err.name); + console.log("Error", err.message); + } next(err); } }