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
4
lib/cli-errors.js
generated
4
lib/cli-errors.js
generated
|
|
@ -110,6 +110,7 @@ function extractAutobuildErrors(error) {
|
||||||
var CliConfigErrorCategory;
|
var CliConfigErrorCategory;
|
||||||
(function (CliConfigErrorCategory) {
|
(function (CliConfigErrorCategory) {
|
||||||
CliConfigErrorCategory["AutobuildError"] = "AutobuildError";
|
CliConfigErrorCategory["AutobuildError"] = "AutobuildError";
|
||||||
|
CliConfigErrorCategory["CouldNotCreateTempDir"] = "CouldNotCreateTempDir";
|
||||||
CliConfigErrorCategory["ExternalRepositoryCloneFailed"] = "ExternalRepositoryCloneFailed";
|
CliConfigErrorCategory["ExternalRepositoryCloneFailed"] = "ExternalRepositoryCloneFailed";
|
||||||
CliConfigErrorCategory["GradleBuildFailed"] = "GradleBuildFailed";
|
CliConfigErrorCategory["GradleBuildFailed"] = "GradleBuildFailed";
|
||||||
CliConfigErrorCategory["IncompatibleWithActionVersion"] = "IncompatibleWithActionVersion";
|
CliConfigErrorCategory["IncompatibleWithActionVersion"] = "IncompatibleWithActionVersion";
|
||||||
|
|
@ -139,6 +140,9 @@ exports.cliErrorsConfig = {
|
||||||
new RegExp("We were unable to automatically build your code"),
|
new RegExp("We were unable to automatically build your code"),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
[CliConfigErrorCategory.CouldNotCreateTempDir]: {
|
||||||
|
cliErrorMessageCandidates: [new RegExp("Could not create temp directory")],
|
||||||
|
},
|
||||||
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
|
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
|
||||||
cliErrorMessageCandidates: [
|
cliErrorMessageCandidates: [
|
||||||
new RegExp("Failed to clone external Git repository"),
|
new RegExp("Failed to clone external Git repository"),
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -119,6 +119,7 @@ function extractAutobuildErrors(error: string): string | undefined {
|
||||||
/** Error messages from the CLI that we consider configuration errors and handle specially. */
|
/** Error messages from the CLI that we consider configuration errors and handle specially. */
|
||||||
export enum CliConfigErrorCategory {
|
export enum CliConfigErrorCategory {
|
||||||
AutobuildError = "AutobuildError",
|
AutobuildError = "AutobuildError",
|
||||||
|
CouldNotCreateTempDir = "CouldNotCreateTempDir",
|
||||||
ExternalRepositoryCloneFailed = "ExternalRepositoryCloneFailed",
|
ExternalRepositoryCloneFailed = "ExternalRepositoryCloneFailed",
|
||||||
GradleBuildFailed = "GradleBuildFailed",
|
GradleBuildFailed = "GradleBuildFailed",
|
||||||
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
|
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
|
||||||
|
|
@ -159,6 +160,9 @@ export const cliErrorsConfig: Record<
|
||||||
new RegExp("We were unable to automatically build your code"),
|
new RegExp("We were unable to automatically build your code"),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
[CliConfigErrorCategory.CouldNotCreateTempDir]: {
|
||||||
|
cliErrorMessageCandidates: [new RegExp("Could not create temp directory")],
|
||||||
|
},
|
||||||
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
|
[CliConfigErrorCategory.ExternalRepositoryCloneFailed]: {
|
||||||
cliErrorMessageCandidates: [
|
cliErrorMessageCandidates: [
|
||||||
new RegExp("Failed to clone external Git repository"),
|
new RegExp("Failed to clone external Git repository"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue