Commit 39ab9d9f by John Eskew

Print the validator errors when SubmissionRequestError is thrown.

parent 7115c4cf
......@@ -90,6 +90,14 @@ class SubmissionRequestError(SubmissionError):
else {}
)
def __repr__(self):
"""
Show the field errors upon output.
"""
return '{}(msg="{}", field_errors={})'.format(
self.__class__.__name__, self.message, self.field_errors
)
def create_submission(student_item_dict, answer, submitted_at=None, attempt_number=None):
"""Creates a submission for assessment.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment