{"record":{"id":"69b45b6a285d3982","repo":"DioxusLabs/dioxus","slug":"1-issue-found","errorCode":null,"errorMessage":"1 issue found.","messagePattern":"1 issue found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/check.rs","lineNumber":121,"sourceCode":"        .into_iter()\n        .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":103,"sourceCodeEnd":133,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/check.rs#L103-L133","documentation":"Sentinel exit-code error from check_files_and_report: the diagnostics themselves were already logged via tracing::info; this Err is deliberately returned when total_issues == 1 so the `dx check` command exits nonzero. It signals 'check found a problem', not a crash — there is nothing to recover from.","triggerScenarios":"Thrown at packages/cli/src/cli/check.rs:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["dx check found an issue. Read the printed issue and fix it in the reported file."],"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-23T08:17:48.524Z"}