Bug 1022444 - Should also print warnings when an error occurs

Currently warnings are only being printed on success. Since warnings may be related to the failure of the user action we should also report them on errors.
Merge pull request #492 from smarterclayton/bug_1022444_log_client_warnings_on_error

Merged by openshift-bot