We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8daf1d commit bb2fc73Copy full SHA for bb2fc73
1 file changed
pkg/cdi/cache.go
@@ -321,7 +321,7 @@ func (c *Cache) RemoveSpec(name string) error {
321
322
specDir, _ = c.highestPrioritySpecDir()
323
if specDir == "" {
324
- return errors.New("no Spec directories to remove from")
+ return fmt.Errorf("no Spec directories defined: %w", fs.ErrNotExist)
325
}
326
327
path = filepath.Join(specDir, name)
0 commit comments