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

@ -237,7 +237,7 @@ class Way < ActiveRecord::Base
def delete_with_history!(new_way, user)
unless self.visible
raise OSM::APIAlreadyDeletedError
raise OSM::APIAlreadyDeletedError.new("way", new_way.id)
end
# need to start the transaction here, so that the database can