runner: check gerrit.Refresh() for errors

This commit is contained in:
Florian Klink 2019-12-02 14:37:38 +01:00
parent 118a88dace
commit 8129de3b9a

View file

@ -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 {