commit | 66aec9d73ba543a42ea1f16549937c4e42dda909 | [log] [tgz] |
---|---|---|
author | Rodric Rabbah <rabbah@us.ibm.com> | Mon Mar 07 15:08:06 2016 -0500 |
committer | Rodric Rabbah <rabbah@us.ibm.com> | Sun Mar 13 16:33:59 2016 -0400 |
tree | f9c8d0e95c6d905fbb57d344447e100c9b1d8abc | |
parent | 1041894fa4b1fe0cae8620a3ffe408c7a032c3d6 [diff] |
Report HTTP error if possible on CLI commands. Separated the reading of the HTTP response from the JSON parsing and on error, repor the HTTP response body as it may be useful to see the raw response when the API call fails. For example, if the host is unreachable.