daemon: createCDICache: fix error-capitalization

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-05-26 14:44:15 +02:00
parent 158c04fac8
commit e03ac1fad9

View File

@@ -66,7 +66,7 @@ func newCDIDeviceDriver(cdiSpecDirs ...string) *deviceDriver {
// If the list of CDI specification directories is empty or the creation of the CDI cache fails, an error is returned.
func createCDICache(cdiSpecDirs ...string) (*cdi.Cache, error) {
if len(cdiSpecDirs) == 0 {
return nil, fmt.Errorf("No CDI specification directories specified")
return nil, fmt.Errorf("no CDI specification directories specified")
}
cache, err := cdi.NewCache(cdi.WithSpecDirs(cdiSpecDirs...))