Better error when we cannot find an endpoint.