adding errors to messages