Exception: TapCoreRemoteMismatchError Private

Inherits:
TapRemoteMismatchError show all
Defined in:
exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Raised when the remote of homebrew/core does not match HOMEBREW_CORE_GIT_REMOTE.

Instance Attribute Summary

Attributes inherited from TapRemoteMismatchError

#actual_remote, #expected_remote, #name

Instance Method Summary collapse

Methods inherited from TapRemoteMismatchError

#initialize

Constructor Details

This class inherits a constructor from TapRemoteMismatchError

Instance Method Details

#messageObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



328
329
330
331
332
333
334
# File 'exceptions.rb', line 328

def message
  <<~EOS
    Tap #{name} remote does not match HOMEBREW_CORE_GIT_REMOTE.
    #{expected_remote} != #{actual_remote}
    Please set HOMEBREW_CORE_GIT_REMOTE="#{actual_remote}" and run `brew update` instead.
  EOS
end