Skip to content

Commit 8f166d1

Browse files
committed
fix: use InvalidArgumentError for commander errors
InvalidOptionArgumentError was renamed to InvalidArgumentError in tj/commander.js#1508 for [email protected]. Signed-off-by: Kevin Locke <[email protected]>
1 parent e0c88e4 commit 8f166d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default async function fetchProcoreApiDocsMain(args, options) {
107107

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

0 commit comments

Comments
 (0)