fix cmd stderr output
This commit is contained in:
parent
f95d0e1649
commit
421374a68b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue