aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipc/ipc.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go
index b6bc45b25..8b3a925e7 100644
--- a/pkg/ipc/ipc.go
+++ b/pkg/ipc/ipc.go
@@ -780,8 +780,10 @@ func (c *command) exec(opts *ExecOpts, progData []byte) (output []byte, hanged b
output = <-c.readDone
if err := c.wait(); <-hang {
hanged = true
- output = append(output, []byte(err.Error())...)
- output = append(output, '\n')
+ if err != nil {
+ output = append(output, err.Error()...)
+ output = append(output, '\n')
+ }
return
}
if exitStatus == -1 {