]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/query.js
Handle overpass errors reported as remarks
[rails.git] / app / assets / javascripts / index / query.js
index 86f24e0469603751af413aadf02e64be547960aa..d3fa8ad838f8f10c7f72d8e15779323fb6853801 100644 (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"))