added code to include tree information into a exception message.