Prefer string interpolation to concatenation

This commit is contained in:
Tom Hughes 2020-11-13 11:32:28 +00:00
parent 45d4242f9d
commit bfffe7ed96
13 changed files with 30 additions and 30 deletions

View file

@ -13,7 +13,7 @@ class TraceImporterJob < ApplicationJob
rescue StandardError => e
logger.info e.to_s
e.backtrace.each { |l| logger.info l }
UserMailer.gpx_failure(trace, e.to_s + "\n" + e.backtrace.join("\n")).deliver
UserMailer.gpx_failure(trace, "#{e}\n#{e.backtrace.join("\n")}").deliver
trace.destroy
end
end