app: filter not found store error
All checks were successful
Test / Create distribution (push) Successful in 28s
Test / Fortify (push) Successful in 2m21s
Test / Data race detector (push) Successful in 3m4s
Test / Flake checks (push) Successful in 43s

This is expected behaviour on alternative exit path.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-02-23 23:34:30 +09:00
parent e6cd2bb2a8
commit 3f869f0bf2
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
@ -69,6 +70,10 @@ func (seal *outcome) Run(ctx context.Context, rs *fst.RunState) error {
storeErr.Inner, storeErr.DoErr = store.Do(seal.user.aid.unwrap(), func(c state.Cursor) {
revertErr = func() error {
storeErr.InnerErr = deferredStoreFunc(c)
if errors.Is(storeErr.InnerErr, os.ErrNotExist) {
fmsg.Verbose("duplicate state entry destruction")
storeErr.InnerErr = nil
}
/*
revert app setup transaction