{% extends "base.html" %} {% load custom_filters %} {% block css%} {% endblock %} {% block nav %} {% endblock %} {% block content %}
{% block main %} {% endblock %}

{% if question.type == 'code' or question.type == 'upload' %} {% if error_message %}
{% for error in error_message %}
Testcase No. {{ forloop.counter }}
{% if not error.type %}
 {{error|safe}} 
{% elif error.type == 'assertion' %} {% if 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 %}
Exception Name: {{error.exception}}
Exception Message: {{error.message}}
Full Traceback:
{{error.traceback}}
{% elif error.type == 'stdio' %} {% if error.given_input %}
For given Input value(s): {{error.given_input}}
{% endif %} {% for expected,user in error.expected_output|zip:error.user_output %} {% if forloop.counter0 in error.error_line_numbers or not expected or not user %} {% else %} {% endif %} {% endfor %}
Line No.
Expected Output
User output
Status
{{forloop.counter}} {{expected|default:""}} {{user|default:""}}
Error: {{error.error_msg}}
{% endif %}
{% endfor %}
{% endif %} {% endif %}
{% endblock %}