From 58897522a731c9eb83d9e10c4c310d709174b10e Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 26 Jun 2023 19:19:58 +0900 Subject: [PATCH] =?UTF-8?q?config=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=20?= =?UTF-8?q?=EC=97=86=EC=96=B4=EB=8F=84=20=EA=B4=9C=EC=B6=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/http_api.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/http_api.go b/server/http_api.go index bb4a2e2..fce8f11 100644 --- a/server/http_api.go +++ b/server/http_api.go @@ -2,6 +2,7 @@ package server import ( "encoding/json" + "errors" "fmt" "io" "io/fs" @@ -144,6 +145,10 @@ func (h *houstonHandler) findLastestConfigFile(name string) (string, error) { logger.Println("findLastestConfigFile :", name) configFiles, err := os.ReadDir(path.Join(h.deployPath, name, "config")) if err != nil { + if errors.Is(err, fs.ErrNotExist) { + return "", nil + } + logger.Println("findLastestConfigFile failed :", err) return "", err }