Skip to content

Commit

Permalink
make errors more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Dec 30, 2024
1 parent 99d296f commit 9fba73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/command-helpers/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -224,6 +224,6 @@ export class ContractService {
}
}

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

0 comments on commit 9fba73e

Please sign in to comment.