Skip to content

Commit d59d0eb

Browse files
committed
Add CLI error for failure to create temp directory
1 parent 0ae74e1 commit d59d0eb

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lib/cli-errors.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function extractAutobuildErrors(error: string): string | undefined {
119119
/** Error messages from the CLI that we consider configuration errors and handle specially. */
120120
export enum CliConfigErrorCategory {
121121
AutobuildError = "AutobuildError",
122+
CouldNotCreateTempDir = "CouldNotCreateTempDir",
122123
ExternalRepositoryCloneFailed = "ExternalRepositoryCloneFailed",
123124
GradleBuildFailed = "GradleBuildFailed",
124125
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
@@ -159,6 +160,9 @@ export const cliErrorsConfig: Record<
159160
new RegExp("We were unable to automatically build your code"),
160161
],
161162
},
163+
[CliConfigErrorCategory.CouldNotCreateTempDir]: {
164+
cliErrorMessageCandidates: [new RegExp("Could not create temp directory")],
165+
},
162166
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
163167
cliErrorMessageCandidates: [
164168
new RegExp("Failed to clone external Git repository"),

0 commit comments

Comments
 (0)