Skip to content

Commit

Permalink
chore: enhance error msg (#4666)
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill authored May 9, 2024
1 parent ac52e18 commit c79f6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/postage/postagecontract/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (c *postageContract) CreateBatch(ctx context.Context, initialBalance *big.I
}

if balance.Cmp(totalAmount) < 0 {
err = ErrInsufficientFunds
err = fmt.Errorf("insufficient balance. amount %d, balance %d: %w", totalAmount, balance, ErrInsufficientFunds)
return
}

Expand Down

0 comments on commit c79f6f5

Please sign in to comment.