{"record":{"id":"2e49ed6dc5493de4","repo":"nikivdev/code","slug":"flow-toml-not-found-in-repo-root","errorCode":null,"errorMessage":"flow.toml not found in repo root.","messagePattern":"flow\\.toml not found in repo root\\.","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/changes.rs","lineNumber":391,"sourceCode":"                if !key.is_empty() {\n                    out.push(key);\n                }\n            }\n            continue;\n        }\n\n        out.push(trimmed.to_string());\n    }\n\n    out.sort();\n    out.dedup();\n    Ok(out)\n}\n\nfn load_project_name(repo_root: &Path) -> Result<String> {\n    let flow_path = repo_root.join(\"flow.toml\");\n    if !flow_path.exists() {\n        bail!(\"flow.toml not found in repo root.\");\n    }\n    trace(&format!(\n        \"reading project name from {}\",\n        flow_path.display()\n    ));\n    let cfg = config::load(&flow_path)\n        .with_context(|| format!(\"failed to read {}\", flow_path.display()))?;\n    let name = cfg\n        .project_name\n        .ok_or_else(|| anyhow::anyhow!(\"flow.toml missing 'name'\"))?;\n    Ok(name)\n}\n\nfn ensure_project_match(repo_root: &Path, bundle: &DiffBundle) -> Result<()> {\n    let bundle_name = bundle.project_name.as_deref().ok_or_else(|| {\n        anyhow::anyhow!(\"Diff bundle missing project name. Recreate with the latest flow.\")\n    })?;\n    let current_name = load_project_name(repo_root)?;","sourceCodeStart":373,"sourceCodeEnd":409,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/changes.rs#L373-L409","documentation":"Error \"flow.toml not found in repo root.\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/changes.rs:391 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"}