Better debugging

semantics-font
Svein-Tore Griff With 2015-04-14 14:01:14 +02:00
parent 9a92a61484
commit 80a80aef7a
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ H5P.ContentUpgradeProcess = (function (Version) {
}); });
} }
catch (err) { catch (err) {
if (console && console.log) {
console.log("Error", err.stack);
console.log("Error", err.name);
console.log("Error", err.message);
}
next(err); next(err);
} }
} }