SAPI_RAW_CHECK expects NUL-terminated strings

PiperOrigin-RevId: 586244294
Change-Id: I85492eb2f4833a1b31312981265ad3d715dfaa72
This commit is contained in:
Wiktor Garbacz 2023-11-29 01:02:56 -08:00 committed by Copybara-Service
parent a0ba1c520f
commit 5ed720eeb1

View File

@ -271,7 +271,7 @@ void GlobalForkClient::ForceStart() {
"already running");
absl::StatusOr<std::unique_ptr<GlobalForkClient>> forkserver =
StartGlobalForkServer();
SAPI_RAW_CHECK(forkserver.ok(), forkserver.status().message().data());
SAPI_RAW_CHECK(forkserver.ok(), forkserver.status().ToString().c_str());
instance_ = forkserver->release();
}