Skip to content

Commit

Permalink
chore: improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Sep 28, 2023
1 parent 6ec90c2 commit 65e9b46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/servicer/keeper/msg_server_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ func (k msgServer) Proof(goCtx context.Context, msg *types.MsgProof) (*types.Msg
msg.SmstSum,
smt.NoPrehashSpec(sha256.New(), true),
); !valid {
errInvalidProof := fmt.Errorf("invalid proof")
errInvalidProof := fmt.Errorf("failed to validate proof")

// TECHDEBT: remove this error logs; they're intended for development use only.
logger.Error(errInvalidProof.Error())

return nil, errInvalidProof
}

Expand Down

0 comments on commit 65e9b46

Please sign in to comment.