Skip to content

Commit 9fba73e

Browse files
committed
make errors more descriptive
1 parent 99d296f commit 9fba73e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/command-helpers/contracts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class ContractService {
193193
}
194194
}
195195

196-
throw new Error(`JSON-RPC is unreachable`);
196+
throw new Error(`No implementation address found`);
197197
}
198198

199199
private async fetchTransactionByHash(networkId: string, txHash: string) {
@@ -224,6 +224,6 @@ export class ContractService {
224224
}
225225
}
226226

227-
throw new Error(`JSON-RPC is unreachable`);
227+
throw new Error(`Failed to fetch tx ${txHash}`);
228228
}
229229
}

0 commit comments

Comments
 (0)