{"record":{"id":"a68d3df8636d6dfe","repo":"denoland/deno","slug":"no-target-files-found","errorCode":null,"errorMessage":"No target files found.","messagePattern":"No target files found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/fmt.rs","lineNumber":205,"sourceCode":"  maybe_show_format_confirmation(cli_options, fmt_flags)?;\n\n  let members_fmt_options =\n    cli_options.resolve_fmt_options_for_members(fmt_flags)?;\n  let mut paths_with_options_batches =\n    Vec::with_capacity(members_fmt_options.len());\n  for (_ctx, member_fmt_options) in members_fmt_options {\n    let files =\n      collect_fmt_files(cli_options, member_fmt_options.files.clone());\n    if !files.is_empty() {\n      paths_with_options_batches.push(PathsWithOptions {\n        base: member_fmt_options.files.base.clone(),\n        paths: files,\n        options: member_fmt_options,\n      });\n    }\n  }\n  if paths_with_options_batches.is_empty() && !fmt_flags.permit_no_files {\n    return Err(anyhow!(\"No target files found.\"));\n  }\n  Ok(paths_with_options_batches)\n}\n\nfn maybe_show_format_confirmation(\n  cli_options: &CliOptions,\n  fmt_flags: &FmtFlags,\n) -> Result<(), AnyError> {\n  if fmt_flags.check\n    || !fmt_flags.files.include.is_empty()\n    || cli_options.workspace().deno_jsons().next().is_some()\n    || cli_options.workspace().package_jsons().next().is_some()\n  {\n    return Ok(());\n  }\n\n  let confirm_result =\n    util::console::confirm(util::console::ConfirmOptions {","sourceCodeStart":187,"sourceCodeEnd":223,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/fmt.rs#L187-L223","documentation":"Error \"No target files found.\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/fmt.rs:205 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"}