Browse Source

update error message with something meaningful

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
8faae83bc2
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb

2
app/services/bulk_upload/lettings/row_parser.rb

@ -163,7 +163,7 @@ private
possible_answers = FormHandler.instance.current_lettings_form.questions.find { |q| q.id == attribute.to_s }.answer_options.keys
unless possible_answers.include?(public_send(field))
errors.add(field, "foo")
errors.add(field, "Value supplied is not one of the permitted values")
end
end
end

Loading…
Cancel
Save