end
render :action => "results"
- # rescue StandardError => ex
- # @error = "Error contacting nominatim.openstreetmap.org: #{ex.to_s}"
- # render :action => "error"
+ rescue StandardError => ex
+ @error = "Error contacting nominatim.openstreetmap.org: #{ex}"
+ render :action => "error"
end
def search_geonames
render :action => "results"
rescue StandardError => ex
- @error = "Error contacting ws.geonames.org: #{ex}"
+ @error = "Error contacting api.geonames.org: #{ex}"
render :action => "error"
end
render :action => "results"
rescue StandardError => ex
- @error = "Error contacting ws.geonames.org: #{ex}"
+ @error = "Error contacting api.geonames.org: #{ex}"
render :action => "error"
end