From 40771c41ab096758e6496a86c3dffd0c024fa0ca Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 15 Nov 2026 17:25:07 +0100 Subject: [PATCH] grants: say each pass's errors and its sealed result in the journal (recovery, lead-47) --- modules/mesh-grants/internal/grants/tools.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/mesh-grants/internal/grants/tools.go b/modules/mesh-grants/internal/grants/tools.go index 3ce1114c..e76413de 100644 --- a/modules/mesh-grants/internal/grants/tools.go +++ b/modules/mesh-grants/internal/grants/tools.go @@ -223,6 +223,13 @@ func (p *Part) Pass() Result { if _, err := p.Store.Put(StateUserList, KeyPass, data); err != nil { res.Errors = append(res.Errors, fmt.Sprintf("its own %s %s cannot be written: %v", StateUserList, KeyPass, err)) } + // Every error of the pass in the journal too: the key pass is read only by tools that may not open its object. + if p.Logf != nil { + for _, e := range res.Errors { + p.Logf("the pass: %s", e) + } + p.Logf("the pass ended: %d errors, sealed %+v", len(res.Errors), res.Sealed) + } return res }