Give up after reporting that the query found too many nodes.

This commit is contained in:
Tom Hughes 2007-07-30 21:09:58 +00:00
parent f601f014ca
commit 7f92d533d0

View 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