Merge pull request #137 from tony24681379/master

fix cmd stderr output
This commit is contained in:
Alessio Pracchia 2017-12-14 23:39:14 +01:00 committed by GitHub
commit 3c502fbdf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ func (c *Command) exec(base string, stop <-chan bool) (response Response) {
response.Name = c.Cmd
response.Out = stdout.String()
if err != nil {
response.Err = errors.New(stderr.String())
response.Err = errors.New(stderr.String() + stdout.String())
}
}
return