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.
2 parents 88b4c48 + 528bf37 commit 19ab304Copy full SHA for 19ab304
ps.go
@@ -51,9 +51,10 @@ var psCommand = cli.Command{
51
psArgs = []string{"-ef"}
52
}
53
54
- output, err := exec.Command("ps", psArgs...).Output()
+ cmd := exec.Command("ps", psArgs...)
55
+ output, err := cmd.CombinedOutput()
56
if err != nil {
- return err
57
+ return fmt.Errorf("%s: %s", err, output)
58
59
60
lines := strings.Split(string(output), "\n")
0 commit comments