ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.44k stars 338 forks source link

Improve error messages to show what token balance was requested and what is current balance #4662

Closed n00b21337 closed 2 months ago

n00b21337 commented 2 months ago
"time"="2024-05-06 12:41:16.055282" "level"="debug" "logger"="node/api/post_stamp" "msg"="create batch: out of funds" "error"="insufficient token balance"
"time"="2024-05-06 12:41:16.055310" "level"="error" "logger"="node/api/post_stamp" "msg"="create batch: out of funds"

not the first time when we setup cluster I see we get above error.

Nodes currently output this kind of info when there is problems with batch creation, would be nice that we also add current balance of that node and requested amount of funds. Would give more insight if maybe node is underfunded or batch is too expensive/big.