]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
api06: simplify exception handling and add exception handling to the diff
[rails.git] / app / controllers / changeset_controller.rb
index db3a2629512b0251d0c645d751914be380675dc4..322ce79f7552f024a382061df1e22554650911e0 100644 (file)
@@ -184,5 +184,8 @@ class ChangesetController < ApplicationController
     end
 
     render :text => res.to_s, :content_type => "text/xml"
+
+  rescue OSM::APIError => ex
+    render ex.render_opts
   end
 end