]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Issue reopens on Reports coming in after instance update
[rails.git] / app / controllers / trace_controller.rb
index 771b1a032516cb1c8dda23d8de9f099221f27955..60b5a4585330309f5c7aa1bf873ae6e5fe220dea 100644 (file)
@@ -264,7 +264,7 @@ class TraceController < ApplicationController
       new_trace = Trace.from_xml(request.raw_post)
 
       unless new_trace && new_trace.id == trace.id
       new_trace = Trace.from_xml(request.raw_post)
 
       unless new_trace && new_trace.id == trace.id
-        fail OSM::APIBadUserInput.new("The id in the url (#{trace.id}) is not the same as provided in the xml (#{new_trace.id})")
+        raise OSM::APIBadUserInput.new("The id in the url (#{trace.id}) is not the same as provided in the xml (#{new_trace.id})")
       end
 
       trace.description = new_trace.description
       end
 
       trace.description = new_trace.description