Skip to content

Commit

Permalink
Add configuration error for unsupported build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Apr 12, 2024
1 parent fa75c14 commit 5558536
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/cli-errors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/cli-errors.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/cli-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export enum CliConfigErrorCategory {
NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded",
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
SwiftBuildFailed = "SwiftBuildFailed",
UnsupportedBuildMode = "UnsupportedBuildMode",
}

type CliErrorConfiguration = {
Expand Down Expand Up @@ -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",
),
],
},
};

/**
Expand Down

0 comments on commit 5558536

Please sign in to comment.