Added error checking for repo search