]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
additional consistency checks. making the error message for the number of nodes use...
[rails.git] / app / controllers / api_controller.rb
index 2f040a92bade1c64892bc6806c3d400f18469eff..8b876d3a79830e6f40cd9073aa03e3a3bb8bbad5 100644 (file)
@@ -116,7 +116,7 @@ class ApiController < ApplicationController
 
     node_ids = @nodes.collect(&:id)
     if node_ids.length > APP_CONFIG['max_number_of_nodes']
-      report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm")
+      report_error("You requested too many nodes (limit is #{APP_CONFIG['max_number_of_nodes']}). Either request a smaller area, or use planet.osm")
       return
     end
     if node_ids.length == 0