]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
add OS StreetView (and a D keypress for the Ubuntu types)
[rails.git] / app / models / relation.rb
index 76cd86729cdc8ed3d3ce16600b799eb9b5813bdc..e3ba69b56386dae78e9df50a0f3225eb63ae2dda 100644 (file)
@@ -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