aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-23 01:18:59 +0900
committerOphestra <cat@gensokyo.uk>2026-05-23 01:25:42 +0900
commit3bd4ef616ceaa4f064d7f992706d0a0512119548 (patch)
treefe39a192278f81b9fee8207d02f2ef31084222a3 /internal/pkg/pkg.go
parent41402fd5789048e39c311f5bb9f1e8c3702ca071 (diff)
internal/pkg: report errors exiting cure
This makes ongoing errors more obvious when multiple failures occur. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index e1d354e0..d2565c37 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
@@ -2101,6 +2110,9 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
Got: gotChecksum,
Want: checksum.Value(),
}
+ if c.msg.IsVerbose() {
+ c.msg.Verbosef("validate %s: %v", reportName(a, id), err)
+ }
return
}