From 3efef339461377021539e48001bfb7e90428b0f9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 23 May 2026 01:18:59 +0900 Subject: [PATCH] internal/pkg: report errors exiting cure This makes ongoing errors more obvious when multiple failures occur. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index e1d354e0..3fe9a8d8 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -1923,6 +1923,9 @@ func (c *Cache) cure(a Artifact, curesExempt bool) ( } c.exitCure(a, curesExempt) if err != nil { + if c.msg.IsVerbose() { + c.msg.Verbosef("cure file %s: %v", reportName(f, id), err) + } return } @@ -1966,6 +1969,9 @@ func (c *Cache) cure(a Artifact, curesExempt bool) ( err = ca.Cure(&t) c.exitCure(a, curesExempt) if err != nil { + if c.msg.IsVerbose() { + c.msg.Verbosef("cure trivial %s: %v", reportName(ca, id), err) + } return } break @@ -2053,6 +2059,9 @@ func (c *Cache) cure(a Artifact, curesExempt bool) ( } c.exitCure(a, curesExempt) if err != nil { + if c.msg.IsVerbose() { + c.msg.Verbosef("cure %s: %v", reportName(ca, id), err) + } return } break