Exception: Bundler::Fetcher::AuthenticationRequiredError
- Inherits:
-
HTTPError
- Object
- StandardError
- BundlerError
- HTTPError
- Bundler::Fetcher::AuthenticationRequiredError
- Defined in:
- lib/bundler/fetcher.rb
Overview
This error is raised if HTTP authentication is required, but not provided.
Instance Method Summary collapse
-
#initialize(remote_uri) ⇒ AuthenticationRequiredError
constructor
A new instance of AuthenticationRequiredError.
Methods inherited from BundlerError
Constructor Details
#initialize(remote_uri) ⇒ AuthenticationRequiredError
Returns a new instance of AuthenticationRequiredError.
39 40 41 42 43 |
# File 'lib/bundler/fetcher.rb', line 39 def initialize(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 #{remote_uri} username:password" end |