checking for private repos and throwing an error