We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e9f7c commit 5d4c59cCopy full SHA for 5d4c59c
providers/gitops/gitops.go
@@ -44,7 +44,7 @@ func (g *ExecGitCommand) Run(ctx context.Context, cmd string, args []string, dir
44
stdout, err := command.Output()
45
if err != nil {
46
if exitErr, ok := err.(*exec.ExitError); ok {
47
- return nil, fmt.Errorf("command `%s` returned an error: %w stderr: %s", command.String(), err, string(exitErr.Stderr))
+ return nil, fmt.Errorf("command `%s` returned an error: %w stderr: %s", command.String(), err, string(bytes.TrimSpace(exitErr.Stderr)))
48
}
49
return nil, fmt.Errorf("error running command: %w", err)
50
0 commit comments