From 7476db0329eef4702912ea5b4d79efd3b04a6b07 Mon Sep 17 00:00:00 2001 From: Pavel Okhlopkov Date: Sat, 2 Nov 2024 23:01:25 +0300 Subject: [PATCH] lint Signed-off-by: Pavel Okhlopkov --- test/utils/streamedexec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/utils/streamedexec.go b/test/utils/streamedexec.go index 1dcb7f0c..3b073d7e 100644 --- a/test/utils/streamedexec.go +++ b/test/utils/streamedexec.go @@ -7,6 +7,7 @@ package utils import ( "bufio" + "errors" "fmt" "io" "os" @@ -92,7 +93,7 @@ func StreamedExecCommand(cmd *exec.Cmd, opts CommandOptions) error { if exitCode := session.ExitCode(); exitCode != 0 { cmdErr := fmt.Errorf("command failed, exit code %d", exitCode) if stopMsg != "" { - cmdErr = fmt.Errorf(stopMsg) + cmdErr = errors.New(stopMsg) } return &CommandError{ CommandError: cmdErr,