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