Exception: Dependabot::PrivateRegistryConfigNotFound

Inherits:
DependabotError
  • Object
show all
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

Instance Method Summary collapse

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

#sourceObject (readonly)

Returns the value of attribute source.



709
710
711
# File 'lib/dependabot/errors.rb', line 709

def source
  @source
end