X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5de81dc4b0f514695fe9f24c7c0cf1437137ee1a..06a17b6bc649daeada37e13d737816cd3d677640:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 789a5f439..f36deb0a8 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -187,18 +187,18 @@ module OSM # Raised when a way has more than the configured number of way nodes. # This prevents ways from being to long and difficult to work with class APITooManyWayNodesError < APIError - def initialize(provided, max) - @provided, @max = provided, max + def initialize(id, provided, max) + @id, @provided, @max = id, provided, max end - attr_reader :provided, :max + attr_reader :id, :provided, :max def status :bad_request end def to_s - "You tried to add #{provided} nodes to the way, however only #{max} are allowed" + "You tried to add #{provided} nodes to way #{id}, however only #{max} are allowed" end end