From 70a35ac2a001bd9638d9db5ed645d00f94ae4666 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 6 Nov 2017 16:34:37 +0530 Subject: Change module compare_stdio to error_messages --- yaksh/templates/exam.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'yaksh/templates/exam.html') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 8b573d4..1d7af9c 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -80,6 +80,7 @@ {% block main %} {% endblock %} +
{% if question.type == 'code' or question.type == 'upload' %} {% if error_message %}
@@ -92,28 +93,22 @@
 {{error|safe}} 
{% elif error.type == 'assertion' %} {% if error.test_case %} - - - - - - -
We tried calling your function with the following test case:{{error.test_case}}
+ We tried you code with the following test case:

+
{{error.test_case}}
{% endif %}

The following error took place:

- + {% if error.traceback %} - + {% endif %} -- cgit
Exception Name: {{error.exception}} - {{error.exception}}
Exception Message: {{error.message}}
Full exception: Full Traceback:
{{error.traceback}}