This PR is for fixing the stringify error object. For majority users like me, the error is not useful because I want to be able to read the object and display a user-friendly error. This PR also make sure to retain the stringify error.
If you need the stringify error, it works the same, just do error.message which gives request: [Object object]
If you need the error object, just do error.object
This PR is for fixing the stringify error object. For majority users like me, the error is not useful because I want to be able to read the object and display a user-friendly error. This PR also make sure to retain the stringify error.
If you need the stringify error, it works the same, just do error.message which gives
request: [Object object]
If you need the error object, just doerror.object