Add some error checking on trying to acquire a repository hash