diff --git a/common/lib/dependabot/errors.rb b/common/lib/dependabot/errors.rb index bd2664fa1a..8597d4fe8c 100644 --- a/common/lib/dependabot/errors.rb +++ b/common/lib/dependabot/errors.rb @@ -85,6 +85,11 @@ def self.fetcher_error_details(error) "error-type": "path_dependencies_not_reachable", "error-detail": { dependencies: error.dependencies } } + when Dependabot::PrivateSourceAuthenticationFailure + { + "error-type": "private_source_authentication_failure", + "error-detail": { source: error.source } + } when Octokit::Unauthorized { "error-type": "octokit_unauthorized" } when Octokit::ServerError