Skip to content

Commit

Permalink
throw error when town not found
Browse files Browse the repository at this point in the history
  • Loading branch information
DiaZork committed Jan 20, 2025
1 parent a504be3 commit 09a7b93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public ResponseEntity<JSONObject> euSearchProjectMap(
if (town != null) {
bboxToUse = nominatimService.getBboxFromTown(town);
if (bboxToUse == null) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Town " + town + " not found");
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Town not found");
}
} else if (granularityRegion != null && !granularityRegion.equals("https://linkedopendata.eu/entity/Q1")) {
Geometry geometry = geoJSONReader.read(facetController.nutsRegion.get(granularityRegion).geoJson.replace("'", "\""));
Expand Down

0 comments on commit 09a7b93

Please sign in to comment.