Minor update to log outputs

This commit is contained in:
Andrew Scott 2022-09-03 00:02:58 -04:00
parent 18666014b6
commit 90313c2f4f
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -105,14 +105,14 @@ func fetchForecast(url string) (string, error) {
res, err := http.Get(url)
if err != nil {
log.Printf("Error fetching extended weather: %v\n", err)
log.Printf("Error fetching forecast: %v\n", err)
return "", err
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
log.Printf("Error reading extending weather: %v\n", err)
log.Printf("Error reading response from OpenWeather: %v\n", err)
return "", err
}