From abbf430ab0bf1064c55cd3cecd0e2ce0a1e629fc 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/app/process.go b/internal/app/process.go index 1302d81..bd34a2d 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,9 @@ 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) { + storeErr.InnerErr = nil + } /* revert app setup transaction