Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
Pavel Okhlopkov committed Nov 2, 2024
1 parent e2606bb commit 7476db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/utils/streamedexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package utils

import (
"bufio"
"errors"
"fmt"
"io"
"os"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7476db0

Please sign in to comment.