summaryrefslogtreecommitdiff
path: root/yaksh/grader.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/grader.py')
-rw-r--r--yaksh/grader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py
index c1be493..c0d81fa 100644
--- a/yaksh/grader.py
+++ b/yaksh/grader.py
@@ -143,6 +143,9 @@ class Grader(object):
test_case_instance.compile_code()
eval_result = test_case_instance.check_code()
test_case_success, err, mark_fraction = eval_result
+ if not isinstance(err, dict):
+ err = prettify_exceptions('Error', err)
+ err['hidden'] = test_case_instance.hidden
if test_case_success:
weight += mark_fraction * test_case_instance.weight
else: