method

fail_attempt

ruby latest stable - Class: Bundler::Retry

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

fail_attempt(e)
private

No documentation available.

# File lib/bundler/retry.rb, line 45
    def fail_attempt(e)
      @failed = true
      if last_attempt? || @exceptions.any? {|k| e.is_a?(k) }
        Bundler.ui.info "" unless Bundler.ui.debug?
        raise e
      end
      return true unless name
      Bundler.ui.info "" unless Bundler.ui.debug? # Add new line incase dots preceded this
      Bundler.ui.warn "Retrying #{name} due to error (#{current_run.next}/#{total_runs}): #{e.class} #{e.message}", Bundler.ui.debug?
    end