]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Improve the node/way/relation already deleted error message, and get rid bug in way...
[rails.git] / app / models / relation.rb
index 8a211b84f0498888108754c4b2e1bc70032a906c..4e75eed357a4df79c9df6afacb2cac06d1ee4e17 100644 (file)
@@ -227,7 +227,7 @@ class Relation < ActiveRecord::Base
 
   def delete_with_history!(new_relation, user)
     unless self.visible
-      raise OSM::APIAlreadyDeletedError.new
+      raise OSM::APIAlreadyDeletedError.new("relation", new_relation.id)
     end
 
     # need to start the transaction here, so that the database can