From c54593d667cfa973f5950e97e81507302cb1b714 Mon Sep 17 00:00:00 2001 From: Pol Torrent i Soler Date: Mon, 4 Nov 2024 12:33:42 +0100 Subject: [PATCH] feat: report exception when notifying failure of attempt grading Kanbanize: #taskid 51138 --- question.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question.php b/question.php index bb8fd29..0dc88b6 100644 --- a/question.php +++ b/question.php @@ -240,7 +240,7 @@ private function set_shortanswer_matching_answers(array $response) { $this->step->reset_attempts(); } catch (moodle_exception $e) { // Notify of the error. - $this->step->inc_attempts(); + $this->step->inc_attempts($e); throw $e; } }