Skip to content

Commit

Permalink
fix: handled error
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikGhaskataEalf committed Dec 26, 2024
1 parent 39cce03 commit 44fb5f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/quick-start/developers/nft-dapp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ const GetParentChainHeight = async () => {
} catch (error) {
// If there's an error, log it and return an error status.
console.error(error, "=====error in GetParentChainHeight");
throw new Error("Failed to Get Parent Chain Height.");
return "error";
}
};
Expand Down

0 comments on commit 44fb5f9

Please sign in to comment.