Skip to content

Commit

Permalink
feat: updates error for window balance (#198)
Browse files Browse the repository at this point in the history
Co-authored-by: kant777 <[email protected]>
  • Loading branch information
ckartik and kant777 authored Jul 5, 2024
1 parent a6094d7 commit beb6d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/pkg/depositmanager/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (dm *DepositManager) CheckAndDeductDeposit(

if defaultBalance == nil {
dm.logger.Error("bidder balance not found", "address", address.Hex(), "window", windowToCheck)
return nil, status.Errorf(codes.FailedPrecondition, "balance not found")
return nil, status.Errorf(codes.FailedPrecondition, "balance not found for window %s", windowToCheck.String())
}

if defaultBalance.Cmp(bidAmount) < 0 {
Expand Down

0 comments on commit beb6d99

Please sign in to comment.