Proper display of save errors.

This commit is contained in:
Edward Betts 2020-04-22 17:11:23 +01:00
parent fce288dcee
commit 97e4501427
3 changed files with 33 additions and 3 deletions

18
templates/save_error.html Normal file
View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<div class="p-2">
<h1>Error saving depicts statements to Wikidata</h1>
<p>It was not possible to save your edit to Wikidata. The details of the error returned by the Wikidata API are below.</p>
{% for message in error.messages %}
<h4>{{ message.name }}</h4>
<div class="mb-3">
{{ message.html | safe }}
</div>
{% endfor %}
</div>
{% endblock %}