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.

@jwforres review please