Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
vgonkivs and distractedm1nd authored Sep 27, 2023
1 parent 13e8928 commit cc9df4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/gateway/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (h *Handler) handleBalanceRequest(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
addrStr, exists := vars[addrKey]
if !exists {
writeError(w, http.StatusBadRequest, balanceEndpoint, errors.New("invalid endpoint"))
writeError(w, http.StatusBadRequest, balanceEndpoint, errors.New("balance endpoint requires address"))
return
}

Expand Down

0 comments on commit cc9df4e

Please sign in to comment.