]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/node_controller.rb
api06: Fix typo.
[rails.git] / app / controllers / node_controller.rb
index 379ee77c9c3f83d44068989c163d70360779f95a..f1ee8f66b413820f724b963cc0983baa5d5772b4 100644 (file)
@@ -56,7 +56,7 @@ class NodeController < ApplicationController
       else
         render :nothing => true, :status => :bad_request
       end
-    rescue OSM::APIVersionMismatchError ex
+    rescue OSM::APIVersionMismatchError => ex
       render :text => "Version mismatch: Provided " + ex.provided.to_s +
        ", server had: " + ex.latest.to_s, :status => :bad_request
     rescue ActiveRecord::RecordNotFound