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
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() {
......
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