diff --git a/yarn-project/foundation/src/json-rpc/client/json_rpc_client.ts b/yarn-project/foundation/src/json-rpc/client/json_rpc_client.ts index 39ddefae1a1..c8f118bdb6c 100644 --- a/yarn-project/foundation/src/json-rpc/client/json_rpc_client.ts +++ b/yarn-project/foundation/src/json-rpc/client/json_rpc_client.ts @@ -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); } }