]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_controller.rb
Fixed error
[rails.git] / app / controllers / old_controller.rb
index 9e1137f8d6e635cd7d1b001167701689fc9a1de9..4869ae3e15da873b14df8e709d1c4243ffec682b 100644 (file)
@@ -19,7 +19,7 @@ class OldController < ApplicationController
     # the .where() method used in the lookup_old_element_versions
     # call won't throw an error if no records are found, so we have
     # to do that ourselves.
-    fail OSM::APINotFoundError.new if @elements.empty?
+    raise OSM::APINotFoundError.new if @elements.empty?
 
     doc = OSM::API.new.get_xml_doc