X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/65eb6af30377bb98a0da691f69d3ad9b68b831e2..9f0ea60679c5e13ec321572f02afa5d265ce0c46:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index dd8d96d12..df6442b83 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -70,6 +70,7 @@ class Node < ActiveRecord::Base doc.find('//osm/node').each do |pt| return Node.from_xml_node(pt, create) end + raise OSM::APIBadXMLError.new("node", xml, "XML doesn't contain an osm/node element.") rescue LibXML::XML::Error, ArgumentError => ex raise OSM::APIBadXMLError.new("node", xml, ex.message) end