Check TypeError's cause and location