Added error reporting when response throws errors.
Authored by: SeanZ 2011-09-09
Parent: [r5531]
Child: [r5533]