X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/65eb6af30377bb98a0da691f69d3ad9b68b831e2..655dc6787e9092a004b582b52ff8e9ccd0d40bb3:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 8788bd671..e26418732 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -234,7 +234,7 @@ class Way < ActiveRecord::Base def preconditions_ok?(old_nodes = []) return false if self.nds.empty? if self.nds.length > APP_CONFIG['max_number_of_way_nodes'] - raise OSM::APITooManyWayNodesError.new(self.nds.length, APP_CONFIG['max_number_of_way_nodes']) + raise OSM::APITooManyWayNodesError.new(self.id, self.nds.length, APP_CONFIG['max_number_of_way_nodes']) end # check only the new nodes, for efficiency - old nodes having been checked last time and can't