{"record":{"id":"f2a5d3b3f6fd61b0","repo":"zed-industries/zed","slug":"message-error-details","errorCode":null,"errorMessage":"{message}: {error_details}","messagePattern":"\\{message\\}: \\{error_details\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/zed/src/main.rs","lineNumber":148,"sourceCode":"                window\n                    .update(cx, |_, window, cx| {\n                        let response = window.prompt(\n                            gpui::PromptLevel::Critical,\n                            message,\n                            Some(&error_details),\n                            &[\"Exit\"],\n                            cx,\n                        );\n\n                        cx.spawn_in(window, async move |_, cx| {\n                            response.await?;\n                            cx.update(|_, cx| cx.quit())\n                        })\n                        .detach_and_log_err(cx);\n                    })\n                    .log_err();\n            } else {\n                fail_to_open_window(anyhow::anyhow!(\"{message}: {error_details}\"), cx)\n            }\n        })\n}\n\nfn fail_to_open_window_async(e: anyhow::Error, cx: &mut AsyncApp) {\n    cx.update(|cx| fail_to_open_window(e, cx));\n}\n\nfn fail_to_open_window(e: anyhow::Error, _cx: &mut App) {\n    eprintln!(\n        \"Zed failed to open a window: {e:?}. See https://zed.dev/docs/linux for troubleshooting steps.\"\n    );\n    #[cfg(not(any(target_os = \"linux\", target_os = \"freebsd\")))]\n    {\n        process::exit(1);\n    }\n\n    // Maybe unify this with gpui::platform::linux::platform::ResultExt::notify_err(..)?","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/zed/src/main.rs#L130-L166","documentation":"Startup failure report in zed/src/main.rs: files that must be created before launch were not created; {message} describes what failed and {error_details} carries the underlying error. Shown in a critical prompt, after which the app exits.","triggerScenarios":"Thrown at crates/zed/src/main.rs:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check disk space and permissions on the config/data directories","Remove conflicting files at the reported paths","Run with appropriate privileges if needed"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}