1
0
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:
Brad Rydzewski 2016-06-06 23:45:58 -07:00
parent d01756ed80
commit 9ab3ccccff

View File

@ -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()