mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 18:31:00 +00:00
fixing a lazy mistake w/ incorrect err type
This commit is contained in:
parent
31f1b8620c
commit
171b986b70
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func (w *worker) Build(name string, stdin []byte, pr bool) (_ int, err error) {
|
|||
return 1, err
|
||||
}
|
||||
if w.build.State.OOMKilled {
|
||||
return 1, fmt.Sprintf("OOMKill received")
|
||||
return 1, fmt.Errorf("OOMKill received")
|
||||
}
|
||||
return w.build.State.ExitCode, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue