From: Thomas Wood Date: Sat, 2 May 2009 18:28:39 +0000 (+0000) Subject: Fix another mis-referenced error message id! X-Git-Tag: live~8048 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1d48f4882719514cf81760d2de1604fae23a73b8 Fix another mis-referenced error message id! --- diff --git a/app/models/node.rb b/app/models/node.rb index a4ba76e91..e37a10250 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -133,7 +133,7 @@ class Node < ActiveRecord::Base check_consistency(self, new_node, user) way = WayNode.find(:first, :joins => :way, :conditions => [ "current_ways.visible = ? AND current_way_nodes.node_id = ?", true, self.id ]) - raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by way #{way.id}.") unless way.nil? + raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by way #{way.way.id}.") unless way.nil? rel = RelationMember.find(:first, :joins => :relation, :conditions => [ "visible = ? AND member_type='Node' and member_id=? ", true, self.id])