ClosedBit error docs

CB_ERR_ENTRYPOINT

Entry point problem. An app package did not define a usable main function, or a library tried to define the app entry point.

Why it happens

An app package did not define a usable main function, or a library tried to define the app entry point.

How to fix it

Apps should define fn main. Libraries should export helpers and avoid defining main.

Copy-paste fix pattern
fn main() {
    println("app starts here")
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.