{"record":{"id":"edd93e2f96bbe385","repo":"zed-industries/zed","slug":"default-title-not-a-string","errorCode":null,"errorMessage":"Default title not a string","messagePattern":"Default title not a string","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/docs_preprocessor/src/main.rs","lineNumber":716,"sourceCode":"                .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/\",\n            }\n            .to_string()\n        });\n    let noindex = if docs_channel == \"nightly\" || docs_channel == \"preview\" {\n        \"<meta name=\\\"robots\\\" content=\\\"noindex, nofollow\\\">\"\n    } else {","sourceCodeStart":698,"sourceCodeEnd":734,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/docs_preprocessor/src/main.rs#L698-L734","documentation":"Raised in handle_postprocessing when the zed-html output's default-title value exists but is not a string (e.g. a number or table). The title must be textual to inject into HTML; a non-string value makes the preprocessor config malformed and processing panics.","triggerScenarios":"Thrown at crates/docs_preprocessor/src/main.rs:716 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Quote the default-title value in book.toml","Validate the TOML types for the zed-html output section"],"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-14T05:17:10.506Z"}