From 09dc6273e3404cf6a3dfad3810a081b4226667bb Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Thu, 20 Jul 2023 20:53:09 +0200 Subject: [PATCH] suppress error when running list before pulling image --- server/routes.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/routes.go b/server/routes.go index f97ab120..0e41f9a5 100644 --- a/server/routes.go +++ b/server/routes.go @@ -2,6 +2,7 @@ package server import ( "encoding/json" + "errors" "io" "log" "net" @@ -163,6 +164,10 @@ func list(c *gin.Context) { } err = filepath.Walk(fp, func(path string, info os.FileInfo, err error) error { if err != nil { + if errors.Is(err, os.ErrNotExist) { + log.Printf("manifest file does not exist: %s", fp) + return nil + } return err } if !info.IsDir() {