Add CLI error for failure to create temp directory
This commit is contained in:
parent
0ae74e1ae0
commit
d59d0eb99a
3 changed files with 9 additions and 1 deletions
|
|
@ -119,6 +119,7 @@ function extractAutobuildErrors(error: string): string | undefined {
|
|||
/** Error messages from the CLI that we consider configuration errors and handle specially. */
|
||||
export enum CliConfigErrorCategory {
|
||||
AutobuildError = "AutobuildError",
|
||||
CouldNotCreateTempDir = "CouldNotCreateTempDir",
|
||||
ExternalRepositoryCloneFailed = "ExternalRepositoryCloneFailed",
|
||||
GradleBuildFailed = "GradleBuildFailed",
|
||||
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
|
||||
|
|
@ -159,6 +160,9 @@ export const cliErrorsConfig: Record<
|
|||
new RegExp("We were unable to automatically build your code"),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.CouldNotCreateTempDir]: {
|
||||
cliErrorMessageCandidates: [new RegExp("Could not create temp directory")],
|
||||
},
|
||||
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("Failed to clone external Git repository"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue