{"record":{"id":"a073e7d4109ebe6e","repo":"NousResearch/hermes-agent","slug":"exit-code","errorCode":null,"errorMessage":"exit code {:?}","messagePattern":"exit code (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"apps/bootstrap-installer/src-tauri/src/bootstrap.rs","lineNumber":774,"sourceCode":"                    .unwrap_or_else(|| format!(\"exit code {:?}\", stage_result.exit_code));\n                emit_event(\n                    &app,\n                    BootstrapEvent::Stage {\n                        name: stage.name.clone(),\n                        state: StageState::Failed,\n                        duration_ms: Some(duration_ms),\n                        result: Some(frame),\n                        error: Some(err.clone()),\n                    },\n                );\n                emit_event(\n                    &app,\n                    BootstrapEvent::Failed {\n                        stage: Some(stage.name.clone()),\n                        error: err.clone(),\n                    },\n                );\n                return Err(anyhow!(err));\n            }\n        }\n    }\n\n    // 4. Resolve install_root. install.ps1 doesn't (yet) report this back\n    // explicitly; we infer it from $HermesHome which Stage-Repository clones\n    // the repo INTO at $HermesHome\\hermes-agent. Mirrors hermes_constants.\n    let hermes_home = args\n        .hermes_home\n        .clone()\n        .unwrap_or_else(|| crate::paths::hermes_home().to_string_lossy().into_owned());\n    let install_root = PathBuf::from(&hermes_home).join(\"hermes-agent\");\n\n    // Marker publish is terminal for this run: a write failure must emit Failed\n    // so the UI leaves the progress state (it does not poll get_bootstrap_status).\n    let marker = match write_bootstrap_complete_marker(&install_root, &pin) {\n        Ok(marker) => marker,\n        Err(err) => {","sourceCodeStart":756,"sourceCodeEnd":792,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/bootstrap-installer/src-tauri/src/bootstrap.rs#L756-L792","documentation":"Error \"exit code {:?}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/bootstrap-installer/src-tauri/src/bootstrap.rs:774 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the exit code and logs of the failing step, fix the cause, and retry the bootstrap."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}