Commit fdb64d1a authored by Pierre Dittgen's avatar Pierre Dittgen

Display error code before error message

parent 1cd04d93
......@@ -6,6 +6,7 @@
{% block content %}
<h1>{{ title }}</h1>
<!-- Schema info -->
<div class="card bg-faded" style="width: 30rem;">
<div class="card-body">
<h5 class="card-title">
......@@ -39,7 +40,7 @@
<h3>Problèmes de structure</h3>
<ul>
{% for err in report.table.errors.structure %}
<li>{{ err.message }}</li>
<li>[{{ err.code }}] {{ err.message }}</li>
{% endfor %}
</ul>
</div>
......@@ -65,7 +66,7 @@
<th>{{ row.row_id }}</th>
{% for d in source_data.data_rows[row.row_id - 2] %}
{% if loop.index in row.errors %}
<td class="table-danger" data-toggle="tooltip" title="{{ row.errors[loop.index].message }}">
<td class="table-danger" data-toggle="tooltip" title="[{{row.errors[loop.index].code}}] {{ row.errors[loop.index].message }}">
{% else %}
<td>
{% endif %}
......
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