Handle overpass errors reported as remarks

Not all overpass errors are reported as HTTP errors - some are
reported as HTTP success with a remark in the response.

Fixes #1178
This commit is contained in:
Tom Hughes 2016-03-20 19:29:50 +00:00
parent e782b2186d
commit a95748b168

View file

@ -226,6 +226,12 @@ OSM.Query = function(map) {
}
}
if (results.remark) {
$("<li>")
.text(I18n.t("javascripts.query.error", { server: url, error: results.remark }))
.appendTo($ul);
}
if ($ul.find("li").length === 0) {
$("<li>")
.text(I18n.t("javascripts.query.nothing_found"))