Commit 8542282c by Arman Sobhi

Fixed error handle template

parent bc86b497
......@@ -48,4 +48,5 @@ def submit():
@app.errorhandler(500)
def exc(err):
return render_template('GASErrorTemplate.html',error_message = str(err))
error_list = str(err).split("\n")
return render_template('GASErrorTemplate.html',error_message = error_list)
......@@ -28,6 +28,11 @@ h1 {
}
.error {
border-style:solid;
border-color:black;
background-color:#586674;
}
.important{
font-weight: bold;
}
......
......@@ -2,9 +2,15 @@
<html>
<body>
<script src="{{ url_for('static', filename='GAS.js') }}"></script>
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='GAS.css') }}">
<div class="error">
<h1>An error has occured during your audit!</h1>
<p>{{error_message}}</p>
<p>
{% for line in error_message %}
{{line}}<br>
{% endfor %}
</p>
</div>
<button type="button" onclick="goBack()">Click here to go back</button>
</body>
......
......@@ -28,8 +28,8 @@
{% endif %}
</ul>
{% endif %}
</div>
<button onclick="goBack()">Click here to go back</button>
</div>
</div>
</body>
</html>
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