]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Capitalize JavaScript as suggested on http://translatewiki.net/w/i.php?title=Special...
[rails.git] / app / models / way.rb
index e2641873284d5e84de69b47a220ed4c7cfbd6655..639f4e69a770ad94e1d2ccda8884d90cabffa459 100644 (file)
@@ -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