runner: check gerrit.Refresh() for errors
This commit is contained in:
		
							parent
							
								
									118a88dace
								
							
						
					
					
						commit
						8129de3b9a
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue