Print better error messages if using sampling file