Better error messages when a dataset does not have required variables