Skip to content

Commit e7bd740

Browse files
committed
Clarify comment from PR review
1 parent f230110 commit e7bd740

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy