Refine error messages and fix tests

Removing the word ‘duplicate’ because:
- it suggests that the whole column is the same, which it might not be
- it suggests that having duplicate column names is a problem, which is
  only true in the case of recipient columns

Reverts back to saying the column names ‘need to’ match, because we feel
it’s more instructive.
This commit is contained in:
Chris Hill-Scott
2019-10-03 14:24:28 +01:00
parent dd1ff2cbf4
commit 3d2f7c3fcf
2 changed files with 9 additions and 6 deletions

View File

@@ -77,7 +77,7 @@
{% elif recipients.duplicate_recipient_column_headers %}
<h1 class='banner-title' data-module="track-error" data-error-type="Duplicate recipient columns" data-error-label="{{ upload_id }}">
Your file has duplicate columns
Theres a problem with your column names
</h1>
<p>
We found more than one column called {{ (
@@ -95,7 +95,7 @@
{% elif recipients.missing_column_headers %}
<h1 class='banner-title' data-module="track-error" data-error-type="Missing placeholder columns" data-error-label="{{ upload_id }}">
Your column names do not match the double brackets in your template
Your column names need to match the double brackets in your template
</h1>
<p>
Your file is missing {{ recipients.missing_column_headers | formatted_list(