]> git.openstreetmap.org Git - rails.git/commitdiff
Fix another error reporting bug similar to previous, again on printing RelationMember...
authorThomas Wood <grand.edgemaster@gmail.com>
Thu, 30 Apr 2009 07:10:57 +0000 (07:10 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Thu, 30 Apr 2009 07:10:57 +0000 (07:10 +0000)
app/models/node.rb

index 035a07eac8e45e657d31d561bace0a19fe26b028..987df9b138b1cdd4658126b7df1e85a9de2d7645 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 relation #{rel.id}.") unless rel.nil?
+      raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by relation #{rel.relation.id}.") unless rel.nil?
 
       self.changeset_id = new_node.changeset_id
       self.visible = false