{"record":{"id":"7332330eef625a30","repo":"denoland/deno","slug":"failed-to-format-failed-files-count-of-checked","errorCode":null,"errorMessage":"Failed to format {failed_files_count} of {checked_files_str}","messagePattern":"Failed to format (.+?) of (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/fmt.rs","lineNumber":1174,"sourceCode":"    );\n\n    let failed_files_count = self.failed_files_count.load(Ordering::Relaxed);\n    let checked_files_count = self.checked_files_count.load(Ordering::Relaxed);\n\n    if failed_files_count == 0 {\n      info!(\n        \"Checked {} {}\",\n        checked_files_count,\n        files_str(checked_files_count)\n      );\n      Ok(())\n    } else {\n      let checked_files_str = format!(\n        \"{} checked {}\",\n        checked_files_count,\n        files_str(checked_files_count)\n      );\n      Err(anyhow!(\n        \"Failed to format {failed_files_count} of {checked_files_str}\",\n      ))\n    }\n  }\n}\n\n/// When storing any formatted text in the incremental cache, we want\n/// to ensure that anything stored when formatted will have itself as\n/// the output as well. This is to prevent \"double format\" issues where\n/// a user formats their code locally and it fails on the CI afterwards.\nfn format_ensure_stable(\n  file_path: &Path,\n  file: &FileContents,\n  fmt_func: impl Fn(&Path, &FileContents) -> Result<Option<String>, AnyError>,\n) -> Result<Option<String>, AnyError> {\n  let formatted_text = fmt_func(file_path, file)?;\n\n  match formatted_text {","sourceCodeStart":1156,"sourceCodeEnd":1192,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/fmt.rs#L1156-L1192","documentation":"Error \"Failed to format {failed_files_count} of {checked_files_str}\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/fmt.rs:1174 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":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}