Add newlines before stdout/stderr

pull/5917/head
Thomas Stromberg 2019-11-20 16:08:16 -08:00
parent e87214d581
commit 7f97b91adf
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func (*ExecRunner) RunCmd(cmd *exec.Cmd) (*RunResult, error) {
return rr, nil return rr, nil
} }
return rr, fmt.Errorf("%s: %v\nstdout: %s\nstderr: %s", rr.Command(), err, rr.Stdout.String(), rr.Stderr.String()) return rr, fmt.Errorf("%s: %v\nstdout:\n%s\nstderr:\n%s", rr.Command(), err, rr.Stdout.String(), rr.Stderr.String())
} }
// Copy copies a file and its permissions // Copy copies a file and its permissions

View File

@ -145,7 +145,7 @@ func (s *SSHRunner) RunCmd(cmd *exec.Cmd) (*RunResult, error) {
return rr, nil return rr, nil
} }
return rr, fmt.Errorf("%s: %v\nstdout: %s\nstderr: %s", rr.Command(), err, rr.Stdout.String(), rr.Stderr.String()) return rr, fmt.Errorf("%s: %v\nstdout:\n%s\nstderr:\n%s", rr.Command(), err, rr.Stdout.String(), rr.Stderr.String())
} }
// Copy copies a file to the remote over SSH. // Copy copies a file to the remote over SSH.