about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-03T10·07+0100
committerFlorian Klink <flokli@flokli.de>2019-12-03T10·07+0100
commit200ad6332b61b643ea943b45938d7d3d17865b2b (patch)
tree3bf2d1b48121a270330db2f16833934bd915487b /main.go
parent241ec393acb6e7e8c784aeed56e281b13a7bc4c6 (diff)
main.go: log errors if they are returned from runner.Trigger()
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())
+				}
 			}
 		}()