added error messsage to text failure