ClosedBit error docs

CB_ERR_INDEX_IO

Tagged index failure. The indexed dataset or tag index could not be read or did not match the dataset.

Why it happens

The indexed dataset or tag index could not be read or did not match the dataset.

How to fix it

Rebuild the index from the dataset and keep both files together.

Copy-paste fix pattern
library CB-GenerationOptimized
library CB-AssetLoader

fn main() {
    if (CB-AssetLoader.exists("data/articles.txt")) {
        CB-GenerationOptimized.build_index("data/articles.txt", "data/articles.cbidx")
        array rows = CB-GenerationOptimized.query("data/articles.txt", "data/articles.cbidx", "rendering", 4)
        println("Matches: " + len(rows))
    } else {
        println("Dataset missing")
    }
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.