CRI: Comment cleanup/misc fixes
Comments in initPlatform for Windows states that the options were Linux specific. Additionally properly wrap an error after trying to setup CDI on Linux. Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
@@ -92,7 +92,7 @@ func (c *criService) initPlatform() (err error) {
|
||||
reg := cdi.GetRegistry()
|
||||
err = reg.Configure(cdi.WithSpecDirs(c.config.CDISpecDirs...))
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to configure CDI registry")
|
||||
return fmt.Errorf("failed to configure CDI registry: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user