From d83a825290506f705ac58e40b9e8bcf8e46a2469 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 22 Sep 2020 14:56:53 +1000 Subject: [PATCH] use correct error wrapping directive --- cmd/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/exec.go b/cmd/exec.go index be8119c..d5fa9a9 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -102,7 +102,7 @@ var execCmd = &cobra.Command{ executable := args[0] pathtoExec, err := exec.LookPath(executable) if err != nil { - log.Fatalf("couldn't find the executable '%s': %w", pathtoExec, err) + log.Fatalf("couldn't find the executable '%s': %s", pathtoExec, err.Error()) } log.Debugf("found executable %s", pathtoExec)