Exception: Dependabot::PrivateRegistryConfigNotFound
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateRegistryConfigNotFound
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/errors.rb
Overview
Source level errors #
Constant Summary
Constants inherited from DependabotError
DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ PrivateRegistryConfigNotFound
constructor
A new instance of PrivateRegistryConfigNotFound.
Constructor Details
#initialize(source) ⇒ PrivateRegistryConfigNotFound
Returns a new instance of PrivateRegistryConfigNotFound.
712 713 714 715 716 717 718 |
# File 'lib/dependabot/errors.rb', line 712 def initialize(source) @source = T.let(sanitize_source(source), String) msg = "Private npm registries require either a .npmrc file in your repository, " \ "or explicit `scope`/`replaces-base` configuration in dependabot.yml. " \ "Registry: #{@source}" super(msg) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
709 710 711 |
# File 'lib/dependabot/errors.rb', line 709 def source @source end |