mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 09:19:52 +08:00
[core] Better error message for named actor not found (#11604)
This commit is contained in:
@@ -1589,9 +1589,10 @@ std::pair<const ActorHandle *, Status> 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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user