Open oniichaNj opened 6 years ago
The response of the particular query is 404 Not Found
. Do you think we need to just map the response codes to messages?
I would think that returning the provided location with the error would provide necessary context. Would more be needed?
Consider the following example;
This outputs
json: cannot unmarshal string into Go struct field CurrentWeatherData.cod of type int
as an error for the second CurrentByName call. Perhaps a more descriptive error message could be used here?