Skip to content

Commit

Permalink
fix: use InvalidArgumentError for commander errors
Browse files Browse the repository at this point in the history
InvalidOptionArgumentError was renamed to InvalidArgumentError in
tj/commander.js#1508 for commander@8.0.0.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Jan 31, 2022
1 parent e0c88e4 commit 8f166d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Expand Up @@ -107,7 +107,7 @@ export default async function fetchProcoreApiDocsMain(args, options) {

// If a non-Commander error was thrown, treat it as unhandled.
// It probably represents a bug and has not been written to stdout/stderr.
// throw commander.{CommanderError,InvalidOptionArgumentError} to avoid.
// throw commander.{CommanderError,InvalidArgumentError} to avoid.
if (typeof errParse.code !== 'string'
|| !errParse.code.startsWith('commander.')) {
throw errParse;
Expand Down

0 comments on commit 8f166d1

Please sign in to comment.