Closed benpetermorris closed 2 years ago
As it stands, we can't discern where the rejection happened in a catch statement, since the strings provide no stack trace.
Passing Error objects to Promise.reject would be much more useful.
Error
Promise.reject
I've published beta version of pkijs. Please try it. It fixes the issue
beta
npm i pkijs@beta # or npm i pkijs@3.0.1-2
As it stands, we can't discern where the rejection happened in a catch statement, since the strings provide no stack trace.
Passing
Error
objects toPromise.reject
would be much more useful.