From a324e5c62f99e730136410e21f002da6d07ecd87 Mon Sep 17 00:00:00 2001 From: Matthew Jackson <1085847+MattJackson@users.noreply.github.com> Date: Tue, 23 Jun 2026 23:34:02 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20module=20doc=20=E2=80=94=20onl?= =?UTF-8?q?y=20Pass=201=20routes=20through=20handle=5Fread=5Ferror,=20not?= =?UTF-8?q?=20Pass=20N?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/disc/read_error.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/disc/read_error.rs b/src/disc/read_error.rs index 066f398..c8f7e5d 100644 --- a/src/disc/read_error.rs +++ b/src/disc/read_error.rs @@ -1,11 +1,10 @@ //! Single source of truth for what to do when a sector read fails. //! -//! Both Pass 1 (`Disc::sweep`) and Pass 2-N (`Disc::patch`) call into -//! `handle_read_error` after every failed `read_sectors`. The handler -//! classifies the error, updates the in-flight context (counters, -//! damage window, retry budgets), and returns a `ReadAction` the caller -//! dispatches on. Every read goes through the same gate — no path can -//! silently skip pause/skip/jump/abort logic. +//! Pass 1 (`Disc::sweep`) calls into `handle_read_error` after every failed +//! `read_sectors`. The handler classifies the error, updates the in-flight +//! context (counters, damage window, retry budgets), and returns a +//! `ReadAction` the caller dispatches on. Pass N patch has its own +//! `handle_read_failure` in `disc/patch.rs` that does not route here. //! //! Adding a new error class = add one arm in `handle_read_error`. //! Adding new logging on errors = one place.