diff options
author | Florian Klink <flokli@flokli.de> | 2019-12-02T13·37+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-12-02T13·37+0100 |
commit | 8129de3b9a932580178e56acdc5730b8d6fcf0a5 (patch) | |
tree | 3abc5cd2f239ba0f49314ddf5a37cd20073fc123 /submitqueue/runner.go | |
parent | 118a88dace6e825e8cb713e644f5bcbcb753737b (diff) |
runner: check gerrit.Refresh() for errors
Diffstat (limited to 'submitqueue/runner.go')
-rw-r--r-- | submitqueue/runner.go | 5 |
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 { |