I'm triggering an API response error by having more than 8 decimals in my marketBuy call, and I noticed the catch() call in the promise returns unusable info:
Debugging the stack trace leads me to this:
The information is there, can't we just reject(body.reason)?
The new Error seems redundant, and prevents the info being passed back to the caller, meaning the root cause can't be pinned/logged without debugging this module.
I'm triggering an API response error by having more than 8 decimals in my marketBuy call, and I noticed the catch() call in the promise returns unusable info:![screenshot 2018-12-03 at 13 24 33](https://user-images.githubusercontent.com/14090872/49376331-cc07f600-f6fe-11e8-8ffd-f23c0664ac3d.png)
Debugging the stack trace leads me to this:![screenshot 2018-12-03 at 13 22 00](https://user-images.githubusercontent.com/14090872/49376258-96630d00-f6fe-11e8-9ad3-be97b3b20b3f.png)
The information is there, can't we just reject(body.reason)?
The new Error seems redundant, and prevents the info being passed back to the caller, meaning the root cause can't be pinned/logged without debugging this module.