Skip to content

Commit

Permalink
Updates error message to be more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCouzens committed Aug 14, 2024
1 parent 3847d68 commit 4b615fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ GEM
json
lograge
railties
lr_common_styles (1.9.3)
lr_common_styles (1.9.4)
bootstrap-sass (~> 3.4.0)
font-awesome-rails (~> 4.7.0.1)
govuk_elements_rails (~> 2.0.0)
Expand Down Expand Up @@ -402,7 +402,7 @@ DEPENDENCIES
json_rails_logger (~> 1.0.0)!
leaflet-rails
libv8-node (>= 16.10.0.0)
lr_common_styles (~> 1.9.3)!
lr_common_styles (~> 1.9, >= 1.9.4)!
minitest-rails-capybara
minitest-reporters
minitest-spec-rails
Expand Down
3 changes: 2 additions & 1 deletion app/models/step_select_postcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def validate_with(workflow, value)
workflow_update_hook(workflow)
workflow.traverse_to(successor_step)
else
set_flash("Sorry, '#{value}' does not appear to be a valid value for a #{subtype_label}.")
set_flash("Sorry, '#{value}' does not appear to be a valid value for a #{subtype_label}.
Have you left a space between between the digits?")
end
end

Expand Down

0 comments on commit 4b615fa

Please sign in to comment.