app: filter not found store error
This is expected behaviour on alternative exit path. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
e6cd2bb2a8
commit
3f869f0bf2
@ -5,6 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"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) {
|
storeErr.Inner, storeErr.DoErr = store.Do(seal.user.aid.unwrap(), func(c state.Cursor) {
|
||||||
revertErr = func() error {
|
revertErr = func() error {
|
||||||
storeErr.InnerErr = deferredStoreFunc(c)
|
storeErr.InnerErr = deferredStoreFunc(c)
|
||||||
|
if errors.Is(storeErr.InnerErr, os.ErrNotExist) {
|
||||||
|
fmsg.Verbose("duplicate state entry destruction")
|
||||||
|
storeErr.InnerErr = nil
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revert app setup transaction
|
revert app setup transaction
|
||||||
|
Loading…
Reference in New Issue
Block a user