Skip to content

Commit a6cb48e

Browse files
committed
Clarify comment from PR review
1 parent b62de8d commit a6cb48e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/cli-errors.js

Lines changed: 3 additions & 2 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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ export const cliErrorsConfig: Record<
154154
};
155155

156156
// Check if the given CLI error or exit code, if applicable, apply to any known
157-
// CLI errors in the configuration record. If either the CLI error or the exit code
158-
// matches, return the error category; if not, return undefined.
157+
// CLI errors in the configuration record. If either the CLI error message matches all of
158+
// the error messages in the config record, or the exit codes match, return the error category;
159+
// if not, return undefined.
159160
export function getCliConfigCategoryIfExists(
160161
cliError: CommandInvocationError,
161162
): CliConfigErrorCategory | undefined {

0 commit comments

Comments
 (0)