Skip to content

Commit

Permalink
Remove extra space to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lpusok committed Mar 20, 2024
1 parent 7eaee07 commit b07bb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c command) wrapError(err error) error {
if errors.As(err, &exitErr) {
origErr := errorutil.NewHiddenOriginalError(err)
if c.errorCollector != nil && len(c.errorCollector.errorLines) > 0 {
return fmt.Errorf("command failed with exit status %d (%s): %w %w", exitErr.ExitCode(), c.PrintableCommandArgs(), errors.New(strings.Join(c.errorCollector.errorLines, "\n")), origErr)
return fmt.Errorf("command failed with exit status %d (%s): %w%w", exitErr.ExitCode(), c.PrintableCommandArgs(), errors.New(strings.Join(c.errorCollector.errorLines, "\n")), origErr)
}
return fmt.Errorf("command failed with exit status %d (%s): %w %w", exitErr.ExitCode(), c.PrintableCommandArgs(), errors.New("check the command's output for details"), origErr)
}
Expand Down

0 comments on commit b07bb50

Please sign in to comment.