ClosedBit error docs

CB_ERR_OVERFLOW

Numeric overflow. A checked integer or floating lane exceeded the value it can represent.

Why it happens

A checked integer or floating lane exceeded the value it can represent.

How to fix it

Clamp before the operation, use a wider lane, or split the value into smaller pieces.

Copy-paste fix pattern
library CB-Math

fn main() {
    u256 capped = CB-Math.min(player_score, max)
    save capped
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.