printErrorMessage method added

This public static method takes a string and print it out in console UI.