X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/65eb6af30377bb98a0da691f69d3ad9b68b831e2..e29e49dc7c3d1d9f59679f09a5eba8a6b56854a2:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 76cd86729..e3ba69b56 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -33,6 +33,7 @@ class Relation < ActiveRecord::Base doc.find('//osm/relation').each do |pt| 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) end