Add method printErrorMsg() in class ReportErrors.

Signed-off-by: whe2014 <wenli.he@proquest.com>