{"record":{"id":"05736865197de7f0","repo":"zeroclaw-labs/zeroclaw","slug":"cli-alias-no-such-section","errorCode":"cli-alias-no-such-section","errorMessage":"no such config section: {$section}","messagePattern":"no such config section: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/alias_cli/mod.rs","lineNumber":91,"sourceCode":"    match config.get_map_keys(section) {\n        Some(mut keys) => {\n            keys.sort();\n            if keys.is_empty() {\n                println!(\n                    \"{}\",\n                    mta(\n                        \"cli-alias-list-empty\",\n                        &[(\"section\", section)],\n                        \"(no entries under {$section})\"\n                    )\n                );\n            } else {\n                for k in keys {\n                    println!(\"{k}\");\n                }\n            }\n        }\n        None => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-no-such-section\",\n                &[(\"section\", section)],\n                \"no such config section: {$section}\"\n            )\n        ),\n    }\n    Ok(())\n}\n\nfn create_entry(config: &mut Config, section: &str, alias: &str) -> Result<()> {\n    // Shared guarded boundary: refuses the reserved `default` agent here too (an\n    // operator create surface), and delegates unchanged for every other section.\n    // The Reserved rejection is localized via Fluent like the delete/rename guards\n    // below; Invalid (unknown section) keeps its pre-existing bare error.\n    let created = match alias_refs::create_map_key_checked(config, section, alias) {\n        Ok(created) => created,","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/alias_cli/mod.rs#L73-L109","documentation":"Error \"no such config section: {$section}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/alias_cli/mod.rs:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the section name against `zeroclaw config get` output and use an existing config section.","Create the section first with `zeroclaw config set <section>.<key> <value>` before aliasing it."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}