mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
write internal errors only to database [CI SKIP]
This commit is contained in:
parent
d01756ed80
commit
9ab3ccccff
@ -71,6 +71,7 @@ func (a *Agent) Run(payload *queue.Work, cancel <-chan bool) error {
|
|||||||
}
|
}
|
||||||
if exitErr, ok := err.(*build.ExitError); ok {
|
if exitErr, ok := err.(*build.ExitError); ok {
|
||||||
payload.Job.ExitCode = exitErr.Code
|
payload.Job.ExitCode = exitErr.Code
|
||||||
|
payload.Job.Error = "" // exit errors are already written to the log
|
||||||
}
|
}
|
||||||
|
|
||||||
payload.Job.Finished = time.Now().Unix()
|
payload.Job.Finished = time.Now().Unix()
|
||||||
|
Loading…
Reference in New Issue
Block a user