ClosedBit error docs

CB_ERR_SAVE_CONTAINER

Invalid .cb save container. A .cb file failed validation or no longer matches the ClosedBit storage format.

Why it happens

A .cb file failed validation or no longer matches the ClosedBit storage format.

How to fix it

Recreate the save through CB-Storage or restore a valid .cb file.

Copy-paste fix pattern
library CB-Storage

fn main() {
    CB-Storage.write_text("player.cb", "100")
    u256 coins = parse_u256_or(CB-Storage.read_text_or("player.cb", "0"), zero)
    save coins
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.