X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7151fa05e4d4f73956d7f9a7ad2db1f5b956a0c0..a0545ba4e524c96e0d7b751e2d856ab672dd78b3:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 1e0deb140..4a7527734 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -70,6 +70,8 @@ class NodeController < ApplicationController begin node = Node.find(params[:id]) node.delete_with_history(@user) + + render :nothing => true rescue ActiveRecord::RecordNotFound render :nothing => true, :status => :not_found rescue OSM::APIError => ex