diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2019-09-20 16:53:21 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2019-09-20 16:53:21 +0200 |
commit | c3a23ce2f5140c57ca452fe83af809bdedb1b10a (patch) | |
tree | 0656696c0ce94b85e1631d8d1e15f5a95d7490e0 /plugins/meta/dnsname/service.go | |
parent | 2ca19cca4d3019c903000fe57053b483ac0745c2 (diff) |
use errors.Errorf instead of fmt.Errorf
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
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), |