[#128] fixed up function declaration for displayErrorMessage method