Exception: GitHub::API::MissingAuthenticationError Private

Inherits:
Error
  • Object
show all
Defined in:
brew/Library/Homebrew/utils/github/api.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error when the user has no GitHub API credentials set at all (macOS keychain or envvar).

Instance Attribute Summary

Attributes inherited from Error

#github_message

Instance Method Summary collapse

Constructor Details

#initializeMissingAuthenticationError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MissingAuthenticationError.



86
87
88
89
90
# File 'brew/Library/Homebrew/utils/github/api.rb', line 86

def initialize
  message = +"No GitHub credentials found in macOS Keychain or environment.\n"
  message << CREATE_GITHUB_PAT_MESSAGE
  super message
end