Skip to content

Commit

Permalink
fix another line.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Dec 23, 2022
1 parent cecbe3b commit 6fa49f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clients/storage/StorageClientBase-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,13 @@ folly::Future<StatusOr<Response>> StorageClientBase<ClientType, ClientManagerTyp
auto ex = exWrapper.get_exception<TransportException>();
if (ex && ex->getType() == TransportException::TIMED_OUT) {
LOG(ERROR) << "Request to " << host << " time out: " << ex->what();
return Status::Error("RPC failure in StorageClient, probably timeout: %s", ex->what());
} else {
auto partsId = getReqPartsId(request);
invalidLeader(spaceId, partsId);
LOG(ERROR) << "Request to " << host << " failed.";
return Status::Error("RPC failure in StorageClient, probably timeout.");
}
return Status::Error("RPC failure in StorageClient, probably timeout: %s", ex->what());
});
}

Expand Down

0 comments on commit 6fa49f2

Please sign in to comment.