Replaced console logs with useful error messages.

HFJ-946
pull/1/head
Thomas Marstrander 2015-08-20 16:14:29 +02:00
parent b9cd56820f
commit 7c6aa504fd
1 changed files with 2 additions and 4 deletions

View File

@ -195,8 +195,7 @@ H5P.QuestionSet = function (options, contentId) {
questionInstances[i].showSolutions(); questionInstances[i].showSolutions();
} }
catch(error) { catch(error) {
console.log(error); H5P.error("subcontent does not contain a valid showSolutions function");
console.log("subcontent does not contain a valid showSolutions() function");
} }
} }
}; };
@ -212,8 +211,7 @@ H5P.QuestionSet = function (options, contentId) {
questionInstances[i].resetTask(); questionInstances[i].resetTask();
} }
catch(error) { catch(error) {
console.log(error); H5P.error("subcontent does not contain a valid resetTask function");
console.log("subcontent does not contain a valid resetTask() function");
} }
} }