From: Gabriel Ebner Date: Mon, 12 May 2008 21:11:51 +0000 (+0000) Subject: api06: Fix typo. X-Git-Tag: live~7622^2~341 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cddded9569d2c5b5c9e82a7bdbb3669be6e23b25 api06: Fix typo. --- diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 379ee77c9..f1ee8f66b 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -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