]> git.openstreetmap.org Git - rails.git/blobdiff - app/jobs/trace_importer_job.rb
Move onclick handling of tou checkbox to ujs
[rails.git] / app / jobs / trace_importer_job.rb
index 6b8943aa20f2dc5dca20dfdd979429f6f0096bbc..e4395bf3d378356f06fb9bd896e8e90862cbf8d9 100644 (file)
@@ -10,10 +10,10 @@ class TraceImporterJob < ApplicationJob
       Notifier.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver_later
       trace.destroy
     end
-  rescue StandardError => ex
-    logger.info ex.to_s
-    ex.backtrace.each { |l| logger.info l }
-    Notifier.gpx_failure(trace, ex.to_s + "\n" + ex.backtrace.join("\n")).deliver_later
+  rescue StandardError => e
+    logger.info e.to_s
+    e.backtrace.each { |l| logger.info l }
+    Notifier.gpx_failure(trace, e.to_s + "\n" + e.backtrace.join("\n")).deliver_later
     trace.destroy
   end
 end