Return an error if discovery fails