]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed dumb copy-and-paste mistake.
authorMatt Amos <zerebubuth@gmail.com>
Fri, 24 Apr 2009 18:47:41 +0000 (18:47 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Fri, 24 Apr 2009 18:47:41 +0000 (18:47 +0000)
app/models/node.rb

index 59bba5e60a7871df2d8bd5fa265097905c00f674..e7356085f605c958d68f9503e1f6a2104f409ad0 100644 (file)
@@ -137,7 +137,7 @@ class Node < ActiveRecord::Base
       
       rel = RelationMember.find(:first, :joins => "INNER JOIN current_relations ON current_relations.id=current_relation_members.id", 
                                 :conditions => [ "visible = ? AND member_type='Node' and member_id=? ", true, self.id])
-      raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by way #{way.id}.") unless rel.nil?
+      raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by relation #{rel.id}.") unless rel.nil?
 
       self.changeset_id = new_node.changeset_id
       self.visible = false