diff --git a/internal/api/images.go b/internal/api/images.go index 7e6f8b402..19156436f 100644 --- a/internal/api/images.go +++ b/internal/api/images.go @@ -32,6 +32,10 @@ func newImageBox(box fs.FS) (*imageBox, error) { } err := fs.WalkDir(box, ".", func(path string, d fs.DirEntry, err error) error { + if err != nil { + return err + } + if d.IsDir() { return nil }