]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
better handling of duplicate tags. Extra validation in the tests.
[rails.git] / app / models / relation.rb
index 0bdacb5ec70f1bb488dcb841f20bdaaa49819b37..ba27e9d7d6efb179e60446343ada1bb130898185 100644 (file)
@@ -209,7 +209,7 @@ class Relation < ActiveRecord::Base
 
     # duplicate tags are now forbidden, so we can't allow values
     # in the hash to be overwritten.
-    raise OSM::APIDuplicateTagsError.new if @tags.include? k
+    raise OSM::APIDuplicateTagsError.new("relation", self.id, k) if @tags.include? k
 
     @tags[k] = v
   end