Skip to content

Commit

Permalink
fix issues with msg
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zappa <[email protected]>
  • Loading branch information
MikeZappa87 committed Apr 8, 2024
1 parent 381ba27 commit 46c7c4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ func checkPluginExists(c *libcni, confList *cnilibrary.NetworkConfigList) error
if !fileExistsInDir(dir, plugin) {
missing[plugin] = plugin
} else {
delete(missing, plugin)
break
}
}
Expand All @@ -333,7 +334,7 @@ func checkPluginExists(c *libcni, confList *cnilibrary.NetworkConfigList) error
plugins = append(plugins, k)
}

return fmt.Errorf("unable to find cni plugins %s in directories %s: %w",
return fmt.Errorf("unable to find cni plugins %s in directories %s: %v",
strings.Join(plugins, ", "), strings.Join(c.pluginDirs, ", "), ErrCNIPluginNotFound)
}

Expand Down

0 comments on commit 46c7c4f

Please sign in to comment.