From 7c6aa504fd4e1b9e8a442d27c67cb4b5e60d40f4 Mon Sep 17 00:00:00 2001 From: Thomas Marstrander Date: Thu, 20 Aug 2015 16:14:29 +0200 Subject: [PATCH] Replaced console logs with useful error messages. HFJ-946 --- js/questionset.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index e0ff70f..4333b60 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -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"); } }