Better error message on aggregate, csv output