From 9ab3ccccff4e5668d38d3ad69ec6901ef65ec9e5 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 6 Jun 2016 23:45:58 -0700 Subject: [PATCH] write internal errors only to database [CI SKIP] --- agent/agent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/agent.go b/agent/agent.go index 120025cfa..d3a83f8a8 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -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()