Skip to content

Commit

Permalink
TAV-514: Remove passed in countryCode from error responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaleem-ee committed Mar 2, 2022
1 parent 97d1eac commit 02e0707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/AddressSearchController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ class AddressSearchController @Inject()(addressSearch: ABPAddressRepository, non
}
} else if (supportedCountryCodes.abp.contains(countryCode)) {
Future.successful {
badRequest("ABP-COUNTRYCODE", "origin" -> origin, "error" -> s"country code $countryCode is abp.")
badRequest("ABP-COUNTRYCODE", "origin" -> origin, "error" -> s"country code is abp.")
}
} else if (!supportedCountryCodes.nonAbp.contains(countryCode)) {
Future.successful {
notFound("UNSUPPORTED-COUNTRYCODE", "origin" -> origin, "error" -> s"country code $countryCode unsupported")
notFound("UNSUPPORTED-COUNTRYCODE", "origin" -> origin, "error" -> s"country code unsupported")
}
} else {
import model.internal.NonUKAddress._
Expand Down

0 comments on commit 02e0707

Please sign in to comment.