X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/add2d223a646fa108288ffdfe3619a18785febcd..d7badc8402876ca666236955c0012efae002e3e8:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 95181ef05..2619a545a 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -307,8 +307,7 @@ class Relation < ActiveRecord::Base # and check that it is OK to use. unless element and element.visible? and element.preconditions_ok? - raise OSM::APIPreconditionFailedError.new("Relation with id #{self.id} cannot be saved due to #{m[0]} with id #{element.id}") - return false + raise OSM::APIPreconditionFailedError.new("Relation with id #{self.id} cannot be saved due to #{m[0]} with id #{m[1]}") end hash[m[1]] = true end