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:
parent
e782b2186d
commit
a95748b168
1 changed files with 6 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue