Fix error handling on missing repo.