feat(errors): add url to request errors
In order to help better error handling, url is added as property on request errors.
This helps project understand which rpc failed. This is important as clients might be using fallback as transport without knowing which rpc is actually being used and which one is throwing timeout or http errors.
This makes all errors consistent with HttpRequestError that exposes the url as class property.
🦋 Changeset detected
Latest commit: 366f545c533fb8e249207734f62130b82df5053a
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| viem | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@jxom any chance to review this? It's an easy one, it just bubbles up more info in errors.