print type of errormessage