pass errors to esclient for reporting