From 9fba73e0c99c5f06926dcfe7d764047dc423b18b Mon Sep 17 00:00:00 2001 From: YaroShkvorets Date: Sun, 29 Dec 2024 19:54:54 -0500 Subject: [PATCH] make errors more descriptive --- packages/cli/src/command-helpers/contracts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/command-helpers/contracts.ts b/packages/cli/src/command-helpers/contracts.ts index f80053e8..2ef5a580 100644 --- a/packages/cli/src/command-helpers/contracts.ts +++ b/packages/cli/src/command-helpers/contracts.ts @@ -193,7 +193,7 @@ export class ContractService { } } - throw new Error(`JSON-RPC is unreachable`); + throw new Error(`No implementation address found`); } private async fetchTransactionByHash(networkId: string, txHash: string) { @@ -224,6 +224,6 @@ export class ContractService { } } - throw new Error(`JSON-RPC is unreachable`); + throw new Error(`Failed to fetch tx ${txHash}`); } }