X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/291350850de00bb32080c70e06599bf41eabd782..8cdee8e0c75e6e62742eabc19bd8559cb13d5072:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index e26418732..639f4e69a 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -34,6 +34,7 @@ class Way < ActiveRecord::Base doc.find('//osm/way').each do |pt| return Way.from_xml_node(pt, create) end + raise OSM::APIBadXMLError.new("node", xml, "XML doesn't contain an osm/way element.") rescue LibXML::XML::Error, ArgumentError => ex raise OSM::APIBadXMLError.new("way", xml, ex.message) end