"docs/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "5b1cd9a66a9cbfdf6347096f2509734fcaa50734"
Commit 09dc6273 authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

suppress error when running list before pulling image

parent ebaa33ac
...@@ -2,6 +2,7 @@ package server ...@@ -2,6 +2,7 @@ package server
import ( import (
"encoding/json" "encoding/json"
"errors"
"io" "io"
"log" "log"
"net" "net"
...@@ -163,6 +164,10 @@ func list(c *gin.Context) { ...@@ -163,6 +164,10 @@ func list(c *gin.Context) {
} }
err = filepath.Walk(fp, func(path string, info os.FileInfo, err error) error { err = filepath.Walk(fp, func(path string, info os.FileInfo, err error) error {
if err != nil { if err != nil {
if errors.Is(err, os.ErrNotExist) {
log.Printf("manifest file does not exist: %s", fp)
return nil
}
return err return err
} }
if !info.IsDir() { if !info.IsDir() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment