grants: say each pass's errors and its sealed result in the journal (recovery, lead-47)

This commit is contained in:
2026-11-15 17:25:07 +01:00
parent 7507a250c7
commit 40771c41ab
@@ -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
}