{"record":{"id":"2a617795f0f63865","repo":"DioxusLabs/dioxus","slug":"total-issues-issues-found","errorCode":null,"errorMessage":"{total_issues} issues found.","messagePattern":"(.+?) issues found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/check.rs","lineNumber":122,"sourceCode":"        .flatten()\n        .flatten()\n        .collect::<Vec<_>>();\n\n    let total_issues = issue_reports.iter().map(|r| r.issues.len()).sum::<usize>();\n\n    for report in issue_reports.into_iter() {\n        if !report.issues.is_empty() {\n            tracing::info!(\"{}\", report);\n        }\n    }\n\n    match total_issues {\n        0 => {\n            tracing::info!(\"No issues found.\");\n            Ok(())\n        }\n        1 => Err(anyhow!(\"1 issue found.\")),\n        _ => Err(anyhow!(\"{total_issues} issues found.\")),\n    }\n}\n\npub(crate) fn collect_rs_files(folder: &Path, files: &mut Vec<PathBuf>) {\n    for entry in ignore::Walk::new(folder).flatten() {\n        if entry.path().extension() == Some(\"rs\".as_ref()) {\n            files.push(entry.path().to_path_buf());\n        }\n    }\n}\n","sourceCodeStart":104,"sourceCodeEnd":133,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/check.rs#L104-L133","documentation":"Sentinel exit-code error from check_files_and_report for the total_issues >= 2 case; the formatted issue reports were already printed, and this Err only makes `dx check` terminate with a nonzero status reflecting the number of issues found.","triggerScenarios":"Thrown at packages/cli/src/cli/check.rs:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["dx check found issues. Read the printed issues and fix them in the reported files."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}