Skip to content

Commit

Permalink
chore: enhance error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed May 8, 2024
1 parent ac52e18 commit d72b9a9
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 d72b9a9

Please sign in to comment.