Improve the node/way/relation already deleted error message, and get rid bug in way model with missing new in exception

This commit is contained in:
Shaun McDonald 2009-04-27 11:49:56 +00:00
parent a7ea614dd0
commit 0b6d9ce877
4 changed files with 10 additions and 4 deletions

View 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