X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ec916b7429ec04731eb5c533c55915f627c9aa38..86b4d1bc2c05a68053c7485217144a7fcf8ef4e8:/app/controllers/relation_controller.rb diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index d7b9de13c..dabf6eaa8 100644 --- a/app/controllers/relation_controller.rb +++ b/app/controllers/relation_controller.rb @@ -64,6 +64,9 @@ class RelationController < ApplicationController render :nothing => true, :status => :not_found rescue OSM::APIPreconditionFailedError render :text => "", :status => :precondition_failed + rescue OSM::APIVersionMismatchError => ex + render :text => "Version mismatch: Provided " + ex.provided.to_s + + ", server had: " + ex.latest.to_s, :status => :bad_request rescue render :nothing => true, :status => :internal_server_error end