Add configuration error for missing auth to package registry
This commit is contained in:
parent
7927df07e2
commit
6548a4d65c
3 changed files with 17 additions and 1 deletions
|
|
@ -135,6 +135,7 @@ export enum CliConfigErrorCategory {
|
|||
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
|
||||
OutOfMemoryOrDisk = "OutOfMemoryOrDisk",
|
||||
PackCannotBeFound = "PackCannotBeFound",
|
||||
PackMissingAuth = "PackMissingAuth",
|
||||
SwiftBuildFailed = "SwiftBuildFailed",
|
||||
UnsupportedBuildMode = "UnsupportedBuildMode",
|
||||
}
|
||||
|
|
@ -244,6 +245,14 @@ export const cliErrorsConfig: Record<
|
|||
),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.PackMissingAuth]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("GitHub Container registry .* 403 Forbidden"),
|
||||
new RegExp(
|
||||
"Do you need to specify a token to authenticate to the registry?",
|
||||
),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.SwiftBuildFailed]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue