Commit fdb64d1a authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Display error code before error message

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