]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Give up after reporting that the query found too many nodes.
[rails.git] / app / controllers / api_controller.rb
index 7477ba91797c40cf0de7750586b74e91d2752f44..62633dbb3ddbb6a79e0f38183e61a70621ece0d5 100644 (file)
@@ -146,6 +146,7 @@ class ApiController < ApplicationController
 
     if node_ids.length > 50_000
       report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm")
+      return
     end
 
     if node_ids.length == 0