X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/acfbc091982fbf74baeef7d16ff7d84f63c84951..e78859aeaf40fd7c3d9f1ef1c0c8d1fd14bf41b0:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index f55711a69..884e96ed7 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -62,8 +62,8 @@ class Relation < ActiveRecord::Base return Relation.from_xml_node(pt, create) end raise OSM::APIBadXMLError.new("node", xml, "XML doesn't contain an osm/relation element.") - rescue LibXML::XML::Error, ArgumentError => ex - raise OSM::APIBadXMLError.new("relation", xml, ex.message) + rescue LibXML::XML::Error, ArgumentError => e + raise OSM::APIBadXMLError.new("relation", xml, e.message) end def self.from_xml_node(pt, create = false)