mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 19:00:35 +00:00
write internal errors only to database [CI SKIP]
This commit is contained in:
parent
d01756ed80
commit
9ab3ccccff
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ func (a *Agent) Run(payload *queue.Work, cancel <-chan bool) error {
|
|||
}
|
||||
if exitErr, ok := err.(*build.ExitError); ok {
|
||||
payload.Job.ExitCode = exitErr.Code
|
||||
payload.Job.Error = "" // exit errors are already written to the log
|
||||
}
|
||||
|
||||
payload.Job.Finished = time.Now().Unix()
|
||||
|
|
Loading…
Reference in a new issue