From beb6d99b8e94f3654e51deaf097abb1cabdb3902 Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Fri, 5 Jul 2024 16:17:12 -0400 Subject: [PATCH] feat: updates error for window balance (#198) Co-authored-by: kant777 <61204489+kant777@users.noreply.github.com> --- p2p/pkg/depositmanager/deposit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/pkg/depositmanager/deposit.go b/p2p/pkg/depositmanager/deposit.go index 21b55afe1..6ec34c072 100644 --- a/p2p/pkg/depositmanager/deposit.go +++ b/p2p/pkg/depositmanager/deposit.go @@ -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 {