throw a useful error when generator functions arent available