plugin/ipam: correct formatting of error message
This commit is contained in:
parent
8462a3f607
commit
2d0d4b35e1
@ -64,7 +64,7 @@ func ExecAdd(plugin string, netconf []byte) (*Result, error) {
|
|||||||
return nil, fmt.Errorf("CNI_COMMAND is not ADD")
|
return nil, fmt.Errorf("CNI_COMMAND is not ADD")
|
||||||
}
|
}
|
||||||
if plugin == "" {
|
if plugin == "" {
|
||||||
return nil, fmt.Errorf(`Name of IPAM plugin is missing. Specify a "type" field in the "ipam" section`)
|
return nil, fmt.Errorf(`name of IPAM plugin is missing. Please specify a "type" field in the "ipam" section`)
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginPath := Find(plugin)
|
pluginPath := Find(plugin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user