Skip to content

Commit

Permalink
fix: JSON-RPC client parsing new errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 3, 2023
1 parent 50e4ec3 commit 3853b35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export async function defaultFetch(
}
if (!resp.ok) {
if (noRetry) {
throw new NoRetryError(responseJson.error);
throw new NoRetryError(responseJson.error.message);
} else {
throw new Error(responseJson.error);
throw new Error(responseJson.error.message);
}
}

Expand Down

0 comments on commit 3853b35

Please sign in to comment.