When callback is used, then error is logged to the console and process exists with non-zero status code. However, when rejected promise is returned, then the Unhandled promise rejection warning is generated and process exits with zero code (which is a bug).
Hello!
Thank you for this great library!
However, the rejected promises, which are returned from the commands are handled incorrectly.
I've created a simple repository to demonstrate the issue: https://github.com/slavafomin/vorpal-promise-rejection-issue
Here's the minimal example:
When callback is used, then error is logged to the console and process exists with non-zero status code. However, when rejected promise is returned, then the
Unhandled promise rejection
warning is generated and process exits with zero code (which is a bug).