{"record":{"id":"068f3c8b3e45ff84","repo":"nikivdev/code","slug":"app-exited-with-status-status","errorCode":null,"errorMessage":"{app} exited with status {status}","messagePattern":"(.+?) exited with status (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":11555,"sourceCode":"    }\n\n    repo_root\n        .file_name()\n        .and_then(|n| n.to_str())\n        .unwrap_or(\"project\")\n        .to_string()\n}\n\nfn open_in_zed_preview(path: &Path) -> Result<()> {\n    // Prefer the local Zed.app fork and fall back to Preview if that app is not installed.\n    let try_open = |app: &str| -> Result<()> {\n        let status = Command::new(\"open\")\n            .args([\"-a\", app])\n            .arg(path)\n            .status()\n            .with_context(|| format!(\"failed to open {app}\"))?;\n        if !status.success() {\n            bail!(\"{app} exited with status {status}\");\n        }\n        Ok(())\n    };\n\n    try_open(\"/Applications/Zed.app\")\n}\n\nfn parse_pr_edit_markdown(text: &str) -> Result<(String, String)> {\n    // Expected shape:\n    //   # Title\n    //   <one line title>\n    //\n    //   # Description\n    //   <markdown body...>\n    let mut title: Option<String> = None;\n    let mut desc_lines: Vec<String> = Vec::new();\n\n    let mut lines = text.lines().peekable();","sourceCodeStart":11537,"sourceCodeEnd":11573,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L11537-L11573","documentation":"Error \"{app} exited with status {status}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/commit.rs:11555 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}