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:
parent
a7ea614dd0
commit
0b6d9ce877
4 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue