X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5de81dc4b0f514695fe9f24c7c0cf1437137ee1a..843d601b0a4df3e0cb81fdedc8e7f7e55379e0e0:/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