Skip to content

Commit ace5735

Browse files
[RPC] Improve error message for failed requests
1 parent 001e510 commit ace5735

File tree

1 file changed

+1
-1
lines changed
  • packages/thirdweb/src/rpc

1 file changed

+1
-1
lines changed

packages/thirdweb/src/rpc/rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function getRpcClient(
146146
if (!response) {
147147
inflight.reject(
148148
new Error(
149-
`No response for index ${index} - all responses: ${stringify(responses)}`,
149+
`RPC Error from ${rpcUrl}:\nrequests: ${stringify(requests)}\nresponses: ${stringify(responses)}`,
150150
),
151151
);
152152
}

0 commit comments

Comments
 (0)