Skip to content

Commit 1be8c48

Browse files
committed
Add configuration error for failing to clone external Git repo
1 parent 82edfe2 commit 1be8c48

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

lib/cli-errors.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function ensureEndsInPeriod(text: string): string {
121121

122122
/** Error messages from the CLI that we consider configuration errors and handle specially. */
123123
export enum CliConfigErrorCategory {
124+
ExternalRepositoryCloneFailed = "ExternalRepositoryCloneFailed",
124125
GradleBuildFailed = "GradleBuildFailed",
125126
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
126127
InitCalledTwice = "InitCalledTwice",
@@ -150,6 +151,11 @@ export const cliErrorsConfig: Record<
150151
CliConfigErrorCategory,
151152
CliErrorConfiguration
152153
> = {
154+
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
155+
cliErrorMessageCandidates: [
156+
new RegExp("Failed to clone external Git repository"),
157+
],
158+
},
153159
[CliConfigErrorCategory.GradleBuildFailed]: {
154160
cliErrorMessageCandidates: [
155161
new RegExp("[autobuild] FAILURE: Build failed with an exception."),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy