lib/sneakers/handlers/maxretry.rb in sneakers-2.3.5 vs lib/sneakers/handlers/maxretry.rb in sneakers-2.4.0

- old
+ new

@@ -138,10 +138,10 @@ num_attempts: num_attempts, 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_class] = reason.class.to_s hash[:error_message] = "#{reason}" if reason.backtrace hash[:backtrace] = reason.backtrace.take(10).join(', ') end end