]> git.openstreetmap.org Git - rails.git/commitdiff
Give up after reporting that the query found too many nodes.
authorTom Hughes <tom@compton.nu>
Mon, 30 Jul 2007 21:09:58 +0000 (21:09 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 30 Jul 2007 21:09:58 +0000 (21:09 +0000)
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