• Angus Salkeld's avatar
    Make sure the StatusCode is taken into account in DoRaw() · c955de2b
    Angus Salkeld authored
    Currently if there is an error (not found) the error printed out
    is to do with the inablity to convert an empty body into the expected json.
    
    This patch will fill in the err correctly.
    
    example of before (with NotFound error):
    $ kubectl top node
    failed to unmarshall heapster response: json: cannot unmarshal object into Go value of type []v1alpha1.NodeMetrics
    
    Now:
    $ kubectl top node
    the server could not find the requested resource (get services http:heapster:)
    c955de2b
Name
Last commit
Last update
..
client.go Loading commit data...
client_test.go Loading commit data...
config.go Loading commit data...
config_test.go Loading commit data...
plugin.go Loading commit data...
plugin_test.go Loading commit data...
request.go Loading commit data...
request_test.go Loading commit data...
transport.go Loading commit data...
url_utils.go Loading commit data...
url_utils_test.go Loading commit data...
urlbackoff.go Loading commit data...
urlbackoff_test.go Loading commit data...
versions.go Loading commit data...