add get errors method to repo class