Skip to content

Commit

Permalink
`Added error handling for missing chain and wallet address in Handler…
Browse files Browse the repository at this point in the history
…GetNodesByChain`
  • Loading branch information
p-shubh committed Dec 22, 2024
1 parent b7eda74 commit 3e6b9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/nodes/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func HandlerGetNodesByChain() gin.HandlerFunc {

if chain == "" && walletAddress == "" {
logwrapper.Errorf("provide atleast chain and wallet_address are required { HandlerGetNodesByChainAndWallet }")

httpo.NewErrorResponse(400, "please pass atleast chain or wallet address").SendD(c)
return
}
db := dbconfig.GetDb()
Expand Down

0 comments on commit 3e6b9f6

Please sign in to comment.