[core] Better error message for named actor not found (#11604)

This commit is contained in:
Ian Rodney
2020-10-26 09:46:02 -07:00
committed by GitHub
parent 0fbee4da0c
commit 2da6ad2176
+4 -3
View File
@@ -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()));
}