Skip to content

Commit

Permalink
fix: stringify error handler data
Browse files Browse the repository at this point in the history
  • Loading branch information
penovicp committed Nov 13, 2023
1 parent 42d1bb6 commit 1eab2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class RpcProvider implements ProviderInterface {
if (rpcError) {
const { code, message, data } = rpcError;
throw new LibraryError(
`RPC: ${method} with params ${JSON.stringify(params)}\n ${code}: ${message}: ${data}`
`RPC: ${method} with params ${stringify(params)}\n ${code}: ${message}: ${stringify(data)}`
);
}
if (otherError instanceof LibraryError) {
Expand Down

0 comments on commit 1eab2d3

Please sign in to comment.