fix(disk): handle glob errors consistently

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2025-05-07 21:36:11 +07:00
parent d6714644ac
commit 0e793551cf
No known key found for this signature in database
GPG Key ID: 3BB198907EF44CED

View File

@ -141,14 +141,12 @@ func (c *DiskCatalog) findGlobPathMatches(absPath string, processed map[string]s
if c.templatesFS != nil {
matches, err = fs.Glob(c.templatesFS, relPath)
if err != nil {
return matches, err
}
} else {
matches, err = filepath.Glob(absPath)
if err != nil {
return matches, err
}
if err != nil {
return nil, err
}
results := make([]string, 0, len(matches))