trae icon indicating copy to clipboard operation
trae copied to clipboard

On rejection Error.message is empty if statusText is empty

Open gillchristian opened this issue 5 years ago • 0 comments

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

gillchristian avatar Aug 07 '19 12:08 gillchristian