Closed SamyCookie closed 1 year ago
Hey @SamyCookie,
Does an extra Error.url property could be set there https://github.com/elbywan/wretch/blob/master/src/resolver.ts#L52 ?
Sure! I pushed a commit to add the property. It should good with the newly released version 2.3.0
.
Perfect ! I test it and it is working perfectly ! Thanks for the adding !
For some reasons I ignore,
Response.url
is not filled if request failed with an HTTP error code response. For logging purpose at a lot higher level, I get a Wretch Error without the possibility to acess to this information. Does an extraError.url
property could be set there https://github.com/elbywan/wretch/blob/master/src/resolver.ts#L52 ?