More informative name error
Following #2737 this error is now a name error