diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index c1a3f97..a79f66a 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -741,7 +741,13 @@ func (c *Cache) openFile(f File) (r io.ReadCloser, err error) { return } if c.msg.IsVerbose() { - c.msg.Verbosef("curing %s to memory...", reportName(f)) + rn := reportName(f) + c.msg.Verbosef("curing %s to memory...", rn) + defer func() { + if err == nil { + c.msg.Verbosef("cured %s to memory", rn) + } + }() } var data []byte if data, err = f.Cure(c.ctx); err != nil { @@ -935,7 +941,18 @@ func (c *Cache) Cure(a Artifact) ( } if c.msg.IsVerbose() { - c.msg.Verbosef("curing %s...", reportNameIdent(a, id)) + rn := reportNameIdent(a, id) + c.msg.Verbosef("curing %s...", rn) + defer func() { + if err != nil { + return + } + if checksums != "" { + c.msg.Verbosef("cured %s checksum %s", rn, checksums) + } else { + c.msg.Verbosef("cured %s", rn) + } + }() } // cure File outside type switch to skip TContext initialisation