about summary refs log tree commit diff
path: root/submitqueue/runner.go
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-02T13·37+0100
committerFlorian Klink <flokli@flokli.de>2019-12-02T13·37+0100
commit8129de3b9a932580178e56acdc5730b8d6fcf0a5 (patch)
tree3abc5cd2f239ba0f49314ddf5a37cd20073fc123 /submitqueue/runner.go
parent118a88dace6e825e8cb713e644f5bcbcb753737b (diff)
runner: check gerrit.Refresh() for errors
Diffstat (limited to 'submitqueue/runner.go')
-rw-r--r--submitqueue/runner.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/submitqueue/runner.go b/submitqueue/runner.go
index d85467b63d5d..63c3628f3d0c 100644
--- a/submitqueue/runner.go
+++ b/submitqueue/runner.go
@@ -92,7 +92,10 @@ func (r *Runner) Trigger(fetchOnly bool) error {
 	}
 
 	// Prepare the work by creating a local cache of gerrit state
-	r.gerrit.Refresh()
+	err := r.gerrit.Refresh()
+	if err != nil {
+		return err
+	}
 
 	// early return if we only want to fetch
 	if fetchOnly {