]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Set a custom return path so that we can ignore bounces.
[rails.git] / app / models / way.rb
index 16c93f608b5ddc3d93b77cdbe419354244194539..40a024b8bb2cd87853dee1ab2133c59328b40976 100644 (file)
@@ -235,7 +235,7 @@ class Way < ActiveRecord::Base
     self.nds.each do |n|
       node = Node.find(:first, :conditions => ["id = ?", n])
       unless node and node.visible
-        raise OSM::APIPreconditionFailedError.new("The node with id #{n} either does not exist, or is not visible")
+        raise OSM::APIPreconditionFailedError.new("Way #{self.id} requires the node with id #{n}, which either does not exist, or is not visible.")
       end
     end
     return true