From 3f869f0bf2fff4ebbde2dc869cd5014d2bb7e305 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Feb 2025 23:34:30 +0900 Subject: [PATCH] app: filter not found store error This is expected behaviour on alternative exit path. Signed-off-by: Ophestra --- internal/app/process.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/app/process.go b/internal/app/process.go index 1302d81..4b88cc5 100644 --- a/internal/app/process.go +++ b/internal/app/process.go @@ -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