{"record":{"id":"f601a89e3462ad51","repo":"zeroclaw-labs/zeroclaw","slug":"e","errorCode":null,"errorMessage":"{e}","messagePattern":"\\{e\\}","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/main.rs","lineNumber":5536,"sourceCode":"                            } else {\n                                println!(\"{value}\");\n                            }\n                        }\n                        Err(e) => {\n                            // Classify the anyhow string into a stable code so\n                            // the CLI's --json envelope matches the HTTP shape.\n                            // Same single-source-of-truth helper the gateway\n                            // uses; never hardcode a code at the call site.\n                            let api_err =\n                                zeroclaw_config::api_error::ConfigApiError::from_validation(\n                                    anyhow::Error::msg(e.to_string()),\n                                )\n                                .with_path(&path);\n                            if json {\n                                eprintln!(\"{}\", serde_json::to_string_pretty(&api_err)?);\n                                std::process::exit(1);\n                            }\n                            anyhow::bail!(\"{e}\");\n                        }\n                    }\n                }\n                Ok(())\n            }\n            ConfigCommands::Set {\n                path,\n                value,\n                no_interactive,\n                comment,\n                json,\n            } => {\n                crate::config::migration::ensure_disk_at_current_version(&config.config_path)?;\n                let known_paths: Vec<String> =\n                    config.prop_fields().into_iter().map(|f| f.name).collect();\n                let mut path = zeroclaw_config::helpers::resolve_field_path(&known_paths, &path);\n                if ensure_map_key_for_prop_path(&mut config, &path)? {\n                    let known_paths: Vec<String> =","sourceCodeStart":5518,"sourceCodeEnd":5554,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/main.rs#L5518-L5554","documentation":"Error \"{e}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/main.rs:5536 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error message, address the underlying cause it describes, and retry the command.","Re-run with verbose logging (RUST_LOG=debug) to get more context on the failure."],"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"}