Change erorr types and elaborate messages in verifymessage.