render :action => "results"
rescue StandardError => e
- @error = "Error contacting nominatim.openstreetmap.org: #{e}"
+ host = URI(Settings.nominatim_url).host
+ @error = "Error contacting #{host}: #{e}"
render :action => "error"
end
render :action => "results"
rescue StandardError => e
- @error = "Error contacting nominatim.openstreetmap.org: #{e}"
+ host = URI(Settings.nominatim_url).host
+ @error = "Error contacting #{host}: #{e}"
render :action => "error"
end