plugin/ipam: correct formatting of error message
authorNeil Wilson <neil@aldur.co.uk>
Tue, 8 Sep 2015 03:20:11 +0000 (03:20 +0000)
committerNeil Wilson <neil@aldur.co.uk>
Tue, 8 Sep 2015 18:08:15 +0000 (18:08 +0000)
pkg/plugin/ipam.go

index 8690b89..f304301 100644 (file)
@@ -64,8 +64,8 @@ func ExecAdd(plugin string, netconf []byte) (*Result, error) {
                return nil, fmt.Errorf("CNI_COMMAND is not ADD")
        }
        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)
        if pluginPath == "" {