module Travis
  module Tasks
    class ErrorHandler
      def call(worker, job, queue)
        yield
      rescue => ex
        Sidekiq.logger.warn(ex)

        if Travis.config.sentry.any?
          Raven.capture_exception(ex, extra: {sidekiq: msg})
        end

        raise
      end
    end
  end
end

module Travis
  module Tasks
    class ErrorHandler
      def call(worker, job, queue)
        yield
      rescue => ex
        Sidekiq.logger.warn(ex)

        if Travis.config.sentry.any?
          Raven.capture_exception(ex, extra: {sidekiq: job})
        end

        raise
      end
    end
  end
end

Send correct data to Sentry
Send correct data to Sentry

Here, `msg` is not defined, so it raises a NameError.
