trae
trae copied to clipboard
On rejection Error.message is empty if statusText is empty
Found out about it while investigating #226
https://github.com/Huemul/trae/blob/fa83b7ffd4013f35b52447a397a8a734afa406df/lib/helpers/response-handler.js#L45
We should have a default error message.
Also, since the Error
has its own .toString
debugging of the response is not ideal, all the properties are not displayed. We could think about our own .toString
for the ResponseError
that we are going to use in v2