Skip to content

Commit a4843a9

Browse files
author
James Halliday
committed
check bug fixed plus a handy string
1 parent 32853b8 commit a4843a9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/optimist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ function Argv (args, cwd) {
102102

103103
self.check = function (f) {
104104
try {
105-
if (f(self.argv) === false) fail(err);
105+
if (f(self.argv) === false) fail(
106+
'Argument check failed: ' + f.toString()
107+
);
106108
}
107109
catch (err) { fail(err) }
108110

0 commit comments

Comments
 (0)