Closed adarshmadrecha closed 2 years ago
When using Promise based order creation, and if it gives error, Node JS will print a warning in console "a promise was rejected with a non-error".
This is because the object returned in Promise.reject is not instance of Error. The object is a simple JavaScript Object as below
Promise.reject
Error
This issue has been fixed and merged in master, therefore i am closing this issue.
@adarshmadrecha Please let us know if you need any help
When using Promise based order creation, and if it gives error, Node JS will print a warning in console "a promise was rejected with a non-error".
This is because the object returned in
Promise.reject
is not instance ofError
. The object is a simple JavaScript Object as below