fix cmd stderr output

This commit is contained in:
Tony Huang 2017-12-09 23:53:54 +08:00
parent f95d0e1649
commit 421374a68b
1 changed files with 1 additions and 1 deletions

View File

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