Skip to content

Commit

Permalink
Clarify comment from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Feb 6, 2024
1 parent f230110 commit e7bd740
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 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.

5 changes: 3 additions & 2 deletions src/cli-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ export const cliErrorsConfig: Record<
};

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

0 comments on commit e7bd740

Please sign in to comment.