X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/291350850de00bb32080c70e06599bf41eabd782..63b399c9b22b7f2a8dfc14fe68bc6579fccb3bf9:/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