{"record":{"id":"97d49e77d6392d27","repo":"zed-industries/zed","slug":"default-description-not-a-string","errorCode":null,"errorMessage":"Default description not a string","messagePattern":"Default description not a string","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/docs_preprocessor/src/main.rs","lineNumber":710,"sourceCode":"    let zed_html = output.remove(\"zed-html\").expect(\"zed-html output defined\");\n    let redirects = zed_html\n        .get(\"redirect\")\n        .and_then(|redirects| redirects.as_table())\n        .map(|redirects| {\n            redirects\n                .iter()\n                .filter_map(|(source, destination)| {\n                    destination\n                        .as_str()\n                        .map(|destination| (source.clone(), destination.to_string()))\n                })\n                .collect::<Vec<_>>()\n        });\n    let default_description = zed_html\n        .get(\"default-description\")\n        .expect(\"Default description not found\")\n        .as_str()\n        .expect(\"Default description not a string\")\n        .to_string();\n    let default_title = zed_html\n        .get(\"default-title\")\n        .expect(\"Default title not found\")\n        .as_str()\n        .expect(\"Default title not a string\")\n        .to_string();\n    let amplitude_key = std::env::var(\"DOCS_AMPLITUDE_API_KEY\").unwrap_or_default();\n    let consent_io_instance = std::env::var(\"DOCS_CONSENT_IO_INSTANCE\").unwrap_or_default();\n    let docs_channel = std::env::var(\"DOCS_CHANNEL\").unwrap_or_else(|_| \"stable\".to_string());\n    let site_url = std::env::var(\"MDBOOK_BOOK__SITE_URL\")\n        .ok()\n        .filter(|site_url| !site_url.trim().is_empty())\n        .unwrap_or_else(|| {\n            match docs_channel.as_str() {\n                \"nightly\" => \"/docs/nightly/\",\n                \"preview\" => \"/docs/preview/\",\n                _ => \"/docs/\",","sourceCodeStart":692,"sourceCodeEnd":728,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/docs_preprocessor/src/main.rs#L692-L728","documentation":"Raised in handle_postprocessing when the `zed-html` preprocess output's default-description key exists but its value is not a TOML/JSON string (e.g. a table or array). The preprocessor config is malformed at that key and docs postprocessing panics with this message.","triggerScenarios":"Thrown at crates/docs_preprocessor/src/main.rs:710 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Quote the default-description value in book.toml so it parses as a string","Validate book.toml types against the expected schema"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}