|  | @@ -3,6 +3,7 @@ package main
 | 
											
												
													
														|  |  import (
 |  |  import (
 | 
											
												
													
														|  |  	"encoding/json"
 |  |  	"encoding/json"
 | 
											
												
													
														|  |  	"log"
 |  |  	"log"
 | 
											
												
													
														|  | 
 |  | +	"net/http"
 | 
											
												
													
														|  |  	"regexp"
 |  |  	"regexp"
 | 
											
												
													
														|  |  	"time"
 |  |  	"time"
 | 
											
												
													
														|  |  )
 |  |  )
 | 
											
										
											
												
													
														|  | @@ -121,7 +122,11 @@ func (app *Application) search(TMs []TM, text string) SearchResults {
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		var tempResults ResultsFromServer
 |  |  		var tempResults ResultsFromServer
 | 
											
												
													
														|  | -		jsonDecoder(resp.Body, &tempResults)
 |  | 
 | 
											
												
													
														|  | 
 |  | +		err = jsonDecoder(resp.Body, &tempResults)
 | 
											
												
													
														|  | 
 |  | +		if err != nil {
 | 
											
												
													
														|  | 
 |  | +			log.Printf("Error decoding results: %s", err)
 | 
											
												
													
														|  | 
 |  | +			continue
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		if tempResults.TotalConcResult > 0 {
 |  |  		if tempResults.TotalConcResult > 0 {
 | 
											
												
													
														|  |  			tmResults := getCleanedResults(tempResults, tm.FriendlyName)
 |  |  			tmResults := getCleanedResults(tempResults, tm.FriendlyName)
 |