Skip to content

Commit

Permalink
If geolocation API returns an error, print the whole thing
Browse files Browse the repository at this point in the history
  • Loading branch information
kercre123 committed May 2, 2024
1 parent fa1c424 commit bea3801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chipper/pkg/wirepod/ttr/weather.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func getWeather(location string, botUnits string, hoursFromNow int) (string, str
err = json.Unmarshal([]byte(geoCodingResponse), &geoCodingInfoStruct)
if err != nil {
logger.Println(err)
logger.Println("Geolocation API error: " + geoCodingResponse)
}
if len(geoCodingInfoStruct) == 0 {
logger.Println("Geo provided no response.")
Expand Down

0 comments on commit bea3801

Please sign in to comment.