lib/sneakers/handlers/maxretry.rb in sneakers-1.0.1 vs lib/sneakers/handlers/maxretry.rb in sneakers-1.0.2
- old
+ new
@@ -139,9 +139,10 @@
failed_at: Time.now.iso8601,
payload: Base64.encode64(msg.to_s)
}.tap do |hash|
if reason.is_a?(Exception)
hash[:error_class] = reason.class
+ hash[:error_message] = "#{reason}"
if reason.backtrace
hash[:backtrace] = reason.backtrace.take(10).join(', ')
end
end
end.to_json