Skip to content

Commit 7ed46a4

Browse files
committed
fix: remove local thrown exception in CLI
1 parent 86e61f0 commit 7ed46a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ try
5656

5757
if (!fnString || args.length === 0)
5858
{
59-
throw new Error('Invalid arguments!')
59+
console.error('Invalid arguments!', usageString);
60+
exitCode = 1;
6061
}
6162

6263
const fn = resolveFn(stringMutilator, fnString)

0 commit comments

Comments
 (0)