diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 31e3a8738b9..6ff0637b938 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -28,7 +28,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype "WHERE a.question = $question->id " . "AND a.id = c.answer ". "ORDER BY a.id ASC")) { - notify('Error: Missing question answer!'); + notify('Error: Missing question answer for calculated question ' . $question->id . '!'); return false; } diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index f4449591dcd..0cfd258649e 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -39,7 +39,7 @@ class question_numerical_qtype extends question_shortanswer_qtype { "WHERE a.question = $question->id " . " AND a.id = n.answer " . "ORDER BY a.id ASC")) { - notify('Error: Missing question answer!'); + notify('Error: Missing question answer for numerical question ' . $question->id . '!'); return false; } $this->get_numerical_units($question); diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 913b1e7bbb3..ac999b95a5e 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -32,7 +32,7 @@ class question_shortanswer_qtype extends default_questiontype { if (!$question->options->answers = get_records('question_answers', 'question', $question->id, 'id ASC')) { - notify('Error: Missing question answers!'); + notify('Error: Missing question answers for shortanswer question ' . $question->id . '!'); return false; } return true; diff --git a/question/type/truefalse/questiontype.php b/question/type/truefalse/questiontype.php index 1877b83cf73..a45bdc56ad5 100644 --- a/question/type/truefalse/questiontype.php +++ b/question/type/truefalse/questiontype.php @@ -107,7 +107,7 @@ class question_truefalse_qtype extends default_questiontype { } // Load the answers if (!$question->options->answers = get_records('question_answers', 'question', $question->id, 'id ASC')) { - notify('Error: Missing question answers!'); + notify('Error: Missing question answers for truefalse question ' . $question->id . '!'); return false; }