Skip to content

Commit 5558536

Browse files
committed
Add configuration error for unsupported build mode
1 parent fa75c14 commit 5558536

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

lib/cli-errors.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export enum CliConfigErrorCategory {
132132
NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded",
133133
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
134134
SwiftBuildFailed = "SwiftBuildFailed",
135+
UnsupportedBuildMode = "UnsupportedBuildMode",
135136
}
136137

137138
type CliErrorConfiguration = {
@@ -220,6 +221,13 @@ export const cliErrorsConfig: Record<
220221
),
221222
],
222223
},
224+
[CliConfigErrorCategory.UnsupportedBuildMode]: {
225+
cliErrorMessageCandidates: [
226+
new RegExp(
227+
"does not support the .* build mode. Please try using one of the following build modes instead",
228+
),
229+
],
230+
},
223231
};
224232

225233
/**

0 commit comments

Comments
 (0)