Add configuration error for unsupported build mode

This commit is contained in:
Henry Mercer
2024-04-12 18:30:45 +01:00
parent fa75c144b4
commit 55585360a3
3 changed files with 15 additions and 1 deletions

View File

@@ -132,6 +132,7 @@ export enum CliConfigErrorCategory {
NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded",
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
SwiftBuildFailed = "SwiftBuildFailed",
UnsupportedBuildMode = "UnsupportedBuildMode",
}
type CliErrorConfiguration = {
@@ -220,6 +221,13 @@ export const cliErrorsConfig: Record<
),
],
},
[CliConfigErrorCategory.UnsupportedBuildMode]: {
cliErrorMessageCandidates: [
new RegExp(
"does not support the .* build mode. Please try using one of the following build modes instead",
),
],
},
};
/**