]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Remove duplication that is in the test helper. Adding tests for the passing of no...
[rails.git] / app / controllers / changeset_controller.rb
index e88387a760907b2f066a9be423405b55d0a2787b..bba012a9c8c871bef56daf89a8d9d57ffef88fc5 100644 (file)
@@ -114,6 +114,8 @@ class ChangesetController < ApplicationController
       render :nothing => true, :status => :method_not_allowed
     end
 
+  rescue LibXML::XML::Error, ArgumentError => ex
+    raise OSM::APIBadXMLError.new("osm", xml, ex.message)
   rescue ActiveRecord::RecordNotFound
     render :nothing => true, :status => :not_found
   rescue OSM::APIError => ex