From cddded9569d2c5b5c9e82a7bdbb3669be6e23b25 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 12 May 2008 21:11:51 +0000 Subject: [PATCH] api06: Fix typo. --- app/controllers/node_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2