Skip to content

Commit 9e41ce5

Browse files
committed
make errors more descriptive
1 parent 1490250 commit 9e41ce5

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
@@ -248,7 +248,7 @@ export class ContractService {
248248
}
249249
}
250250

251-
throw new Error(`JSON-RPC is unreachable`);
251+
throw new Error(`No implementation address found`);
252252
}
253253

254254
private async fetchTransactionByHash(networkId: string, txHash: string) {
@@ -279,6 +279,6 @@ export class ContractService {
279279
}
280280
}
281281

282-
throw new Error(`JSON-RPC is unreachable`);
282+
throw new Error(`Failed to fetch tx ${txHash}`);
283283
}
284284
}

0 commit comments

Comments
 (0)