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 Sep 28, 2023
1 parent 4b2af79 commit b0b0c91
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 b0b0c91

Please sign in to comment.