From 2da6ad21763a3ef2ed07c3bc9c6eef12728a7631 Mon Sep 17 00:00:00 2001 From: Ian Rodney Date: Mon, 26 Oct 2020 09:46:02 -0700 Subject: [PATCH] [core] Better error message for named actor not found (#11604) --- src/ray/core_worker/core_worker.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ray/core_worker/core_worker.cc b/src/ray/core_worker/core_worker.cc index 1150b5d77..5421ff8e1 100644 --- a/src/ray/core_worker/core_worker.cc +++ b/src/ray/core_worker/core_worker.cc @@ -1589,9 +1589,10 @@ std::pair CoreWorker::GetNamedActorHandle( if (actor_id.IsNil()) { std::ostringstream stream; - stream << "Failed to look up actor with name '" << name - << "'. It is either you look up the named actor you didn't create or the named" - "actor hasn't been created because named actor creation is asynchronous."; + stream << "Failed to look up actor with name '" << name << "'. You are " + << "either trying to look up a named actor you didn't create, " + << "the named actor died, or the actor hasn't been created " + << "because named actor creation is asynchronous."; return std::make_pair(nullptr, Status::NotFound(stream.str())); }