Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit 1a38a29

Browse files
author
Mura Li
committed
Log the error returned by exec.Wait
1 parent 199484c commit 1a38a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func (c *Command) RunInDirTimeoutPipeline(timeout time.Duration, dir string, std
7070
return err
7171
}
7272

73-
if err := cmd.Wait(); err == nil {
74-
return nil
73+
if err := cmd.Wait(); err != nil {
74+
log("exec.Wait: %v", err)
7575
}
7676

7777
return ctx.Err()

0 commit comments

Comments
 (0)