diff --git a/app/lib/mail_delivery_error.rb b/app/lib/mail_delivery_error.rb index 4ce1cffed..630496528 100644 --- a/app/lib/mail_delivery_error.rb +++ b/app/lib/mail_delivery_error.rb @@ -3,4 +3,10 @@ # so it would be shallowed otherwise. # # TODO: add a test which verify that the error will permit the job to retry -class MailDeliveryError < Exception; end # rubocop:disable Lint/InheritException +class MailDeliveryError < Exception # rubocop:disable Lint/InheritException + def initialize(original_exception) + super(original_exception.message) + + set_backtrace(original_exception.backtrace) + end +end