33c2d782a90c93d63a29b4402473dd701a6d7ea4
CurrentWeather and geocodeOne decoded the body without checking the status, so a non-200 became a successful zero-value answer. He was told it is 0 degrees, or that the city he named does not exist. The second blamed him for a service failure. Both now check the status and return an error naming it. The caller needed no change: it already branches on not-configured, unknown-location and a generic error in that order. Three httptest cases cover what nothing covered before. A 500 and a connection refused still produce one sentence, and the agent said so rather than rounding it up. Splitting them was not asked for and both are an honest named gap. (V-589)
Description
No description provided
Languages
Go
97.1%
HTML
0.9%
Shell
0.6%
CSS
0.5%
Makefile
0.3%
Other
0.6%