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

Commit c62f66a

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

command.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"os/exec"
1313
"strings"
1414
"time"
15+
16+
"code.gitea.io/gitea/modules/log"
1517
)
1618

1719
var (
@@ -70,8 +72,8 @@ func (c *Command) RunInDirTimeoutPipeline(timeout time.Duration, dir string, std
7072
return err
7173
}
7274

73-
if err := cmd.Wait(); err == nil {
74-
return nil
75+
if err := cmd.Wait(); err != nil {
76+
log.Error("exec.Wait: %v", err)
7577
}
7678

7779
return ctx.Err()

0 commit comments

Comments
 (0)