diff options
Diffstat (limited to 'plugins/meta/dnsname/service.go')
-rw-r--r-- | plugins/meta/dnsname/service.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/meta/dnsname/service.go b/plugins/meta/dnsname/service.go index 3156c1f..c4b8b0f 100644 --- a/plugins/meta/dnsname/service.go +++ b/plugins/meta/dnsname/service.go @@ -10,6 +10,7 @@ import ( "strings" "syscall" + "github.com/pkg/errors" "golang.org/x/sys/unix" ) @@ -17,7 +18,7 @@ import ( func newDNSMasqFile(domainName, networkInterface, networkName string) (dnsNameFile, error) { dnsMasqBinary, err := exec.LookPath("dnsmasq") if err != nil { - return dnsNameFile{}, fmt.Errorf("the dnsmasq cni plugin requires the dnsmasq binary be in PATH") + return dnsNameFile{}, errors.Errorf("the dnsmasq cni plugin requires the dnsmasq binary be in PATH") } masqConf := dnsNameFile{ ConfigFile: makePath(networkName, confFileName), |