Exception: Bundler::Fetcher::AuthenticationRequiredError

Inherits:
HTTPError show all
Defined in:
lib/bundler/fetcher.rb

Overview

This error is raised if HTTP authentication is required, but not provided.

Instance Method Summary collapse

Methods inherited from HTTPError

#filter_uri

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(remote_uri) ⇒ AuthenticationRequiredError

Returns a new instance of AuthenticationRequiredError.



46
47
48
49
50
51
# File 'lib/bundler/fetcher.rb', line 46

def initialize(remote_uri)
  remote_uri = filter_uri(remote_uri)
  super "Authentication is required for #{remote_uri}.\n" \
    "Please supply credentials for this source. You can do this by running:\n" \
    " bundle config set #{remote_uri} username:password"
end