fix(reconcile.go): an error reaches the log, the row and the page as a kind, never its text (adversarial review F3, F5)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 16:40:55 +02:00
co-authored by Claude Sonnet 5.5
parent 03a122c9f5
commit 16a8833f79
+3 -3
View File
@@ -6,6 +6,7 @@ import (
"strings" "strings"
"git.d-ma.be/mathias/tapir/internal/domain" "git.d-ma.be/mathias/tapir/internal/domain"
"git.d-ma.be/mathias/tapir/internal/errkind"
"git.d-ma.be/mathias/tapir/internal/progress" "git.d-ma.be/mathias/tapir/internal/progress"
) )
@@ -101,9 +102,8 @@ func Reconcile(ctx context.Context, base, alt domain.Transcription, adj Adjudica
rec.Errors++ rec.Errors++
consecutive++ consecutive++
if consecutive >= breakAfter { if consecutive >= breakAfter {
failure := fmt.Errorf("the model failed %d times in a row: %w", consecutive, err) rep.Fail("decide", err)
rep.Fail("decide", failure) return skipped(base, rec, fmt.Sprintf("the model failed %d times in a row (%s)", consecutive, errkind.Of(err))), nil
return skipped(base, rec, failure.Error()), nil
} }
v = VerdictUnsure v = VerdictUnsure
} else { } else {