ethersphere/bee

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

n00b21337 opened this issue · 0 comments

"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.