ClosedBit error docs

CB_ERR_SAVE_CONTAINER

Invalid .cb save container. A .cb file failed validation, was edited manually, or does not match the expected ClosedBit storage shape.

Why it happens

A .cb file failed validation, was edited manually, or does not match the expected ClosedBit storage shape.

How to fix it

Regenerate the save through CB-Storage or fall back to a default value when reading.

Copy-paste fix pattern
library CB-Storage

fn main() {
    string text = CB-Storage.read_text_or("player.cb", "0")
    save parse_u256_or(text, zero)
}
If the IDE reports a line number, fix that line first, then scan the previous line for an unclosed string, bracket, or block.