DioxusLabs/dioxus · error

{total_issues} issues found.

Error message

{total_issues} issues found.

What it means

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.

Source

Thrown at packages/cli/src/cli/check.rs:122

        .flatten()
        .flatten()
        .collect::<Vec<_>>();

    let total_issues = issue_reports.iter().map(|r| r.issues.len()).sum::<usize>();

    for report in issue_reports.into_iter() {
        if !report.issues.is_empty() {
            tracing::info!("{}", report);
        }
    }

    match total_issues {
        0 => {
            tracing::info!("No issues found.");
            Ok(())
        }
        1 => Err(anyhow!("1 issue found.")),
        _ => Err(anyhow!("{total_issues} issues found.")),
    }
}

pub(crate) fn collect_rs_files(folder: &Path, files: &mut Vec<PathBuf>) {
    for entry in ignore::Walk::new(folder).flatten() {
        if entry.path().extension() == Some("rs".as_ref()) {
            files.push(entry.path().to_path_buf());
        }
    }
}

View on GitHub (pinned to 24f6a829df)

Solutions

  1. dx check found issues. Read the printed issues and fix them in the reported files.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at packages/cli/src/cli/check.rs:122 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23). Data as JSON: /api/errors/2a617795f0f63865. Report an issue: GitHub.