about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.go b/main.go
index f939c7e370c4..9f3277e9a90e 100644
--- a/main.go
+++ b/main.go
@@ -107,13 +107,19 @@ func main() {
 		handler := frontend.MakeFrontend(rotatingLogHandler, gerrit, runner)
 
 		// fetch only on first run
-		runner.Trigger(fetchOnly)
+		err = runner.Trigger(fetchOnly)
+		if err != nil {
+			log.Error(err.Error())
+		}
 
 		// ticker
 		go func() {
 			for {
 				time.Sleep(time.Duration(triggerInterval) * time.Second)
-				runner.Trigger(fetchOnly)
+				err = runner.Trigger(fetchOnly)
+				if err != nil {
+					log.Error(err.Error())
+				}
 			}
 		}()