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 ed15f7b commit e5a3af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Expand Up @@ -142,7 +142,7 @@ export default async function procoreDocsToOpenapiMain(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 e5a3af3

Please sign in to comment.