From 16a8833f79e03354afc30c3f5eba3a954cb3590d Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 16:40:55 +0200 Subject: [PATCH] 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 --- internal/reconcile/reconcile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/reconcile/reconcile.go b/internal/reconcile/reconcile.go index f1e3956..35048e1 100644 --- a/internal/reconcile/reconcile.go +++ b/internal/reconcile/reconcile.go @@ -6,6 +6,7 @@ import ( "strings" "git.d-ma.be/mathias/tapir/internal/domain" + "git.d-ma.be/mathias/tapir/internal/errkind" "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++ consecutive++ if consecutive >= breakAfter { - failure := fmt.Errorf("the model failed %d times in a row: %w", consecutive, err) - rep.Fail("decide", failure) - return skipped(base, rec, failure.Error()), nil + rep.Fail("decide", err) + return skipped(base, rec, fmt.Sprintf("the model failed %d times in a row (%s)", consecutive, errkind.Of(err))), nil } v = VerdictUnsure } else {