Rejected promises log `true`
Open
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 278
- PR merge metrics
- No merged PRs in 30d
Description
```
vorpal
.command('fail me ')
.description('Must return an arg.')
.action(function (args) {
return new Promise(function (resolve, reject) {
if (args.arg === 'not') {
resolve('we are happy');
} else {
reject('we are not happy.');
}
});
});
```
```
$ fail me
Missing required argument. Showing Help:
Usage: fail me [options]
Must return an arg.
Options:
--help output usage information
$ fail me foo
true
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.