Skip to content

Commit 7ee1e00

Browse files
authored
Improve error message when SESSION_ID doesn't match an actual session (#3121)
2 parents 8a3c536 + e02246c commit 7ee1e00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

config/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ en:
300300
school_urn:
301301
inclusion: The school URN is not recognised. If you’ve checked the URN, and you believe it’s valid, contact our support organisation.
302302
session_id:
303-
inclusion: Enter a valid ID for this organisation and programme
303+
inclusion: The session ID is not recognised. Download the offline spreadsheet and copy the session ID for this row from there, or contact our support organisation.
304304
time_of_vaccination:
305305
blank: Enter a time in the correct format
306306
less_than_or_equal_to: Enter a time in the past

spec/models/immunisation_import_row_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@
307307
it "has errors" do
308308
expect(immunisation_import_row).to be_invalid
309309
expect(immunisation_import_row.errors[:session_id]).to include(
310-
"Enter a valid ID for this organisation and programme"
310+
"The session ID is not recognised. Download the offline spreadsheet and copy the session ID " \
311+
"for this row from there, or contact our support organisation."
311312
)
312313
end
313314
end
@@ -318,7 +319,8 @@
318319
it "has errors" do
319320
expect(immunisation_import_row).to be_invalid
320321
expect(immunisation_import_row.errors[:session_id]).to include(
321-
"Enter a valid ID for this organisation and programme"
322+
"The session ID is not recognised. Download the offline spreadsheet and copy the session ID " \
323+
"for this row from there, or contact our support organisation."
322324
)
323325
end
324326
end

0 commit comments

Comments
 (0)