X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bfffe7ed96e1aba434ca40b488264c43d8f679ff..96ef05b5f7a9a5d64affa8806a9259f61aed3b1f:/app/jobs/trace_importer_job.rb?ds=inline diff --git a/app/jobs/trace_importer_job.rb b/app/jobs/trace_importer_job.rb index 940dd6c79..48285cbc1 100644 --- a/app/jobs/trace_importer_job.rb +++ b/app/jobs/trace_importer_job.rb @@ -10,6 +10,10 @@ class TraceImporterJob < ApplicationJob UserMailer.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver trace.destroy end + rescue XML::Error => e + logger.info e.to_s + UserMailer.gpx_failure(trace, e).deliver + trace.destroy rescue StandardError => e logger.info e.to_s e.backtrace.each { |l| logger.info l }