Skip to content

Commit bb7a48c

Browse files
committed
More specific exception message to help debug in #1752.
1 parent 31b6398 commit bb7a48c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

renderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ public function formulation_and_controls(question_attempt $qa, question_display_
132132
$formatedinputplaceholders !== $originalinputplaceholders ||
133133
$formatedfeedbackplaceholders !== $originalfeedbackplaceholders
134134
) {
135-
throw new coding_exception('Inconsistent placeholders. Possibly due to multi-lang filter not being active.');
135+
throw new coding_exception('Inconsistent placeholders. Possibly due to multi-lang filter not being active. ' .
136+
' Original placeholders: ' . implode(', ', $originalfeedbackplaceholders) . '.' .
137+
' Formatted placeholders: ' . implode(', ', $formatedfeedbackplaceholders));
136138
}
137139

138140
foreach ($question->inputs as $name => $input) {

0 commit comments

Comments
 (0)