Replace a CHECK with a warning

PiperOrigin-RevId: 388893117
Change-Id: I0b0ccf2045aea09d31ae1605b205aab456bd8550
This commit is contained in:
Wiktor Garbacz 2021-08-05 03:02:44 -07:00 committed by Copybara-Service
parent 8b1dfd7343
commit 80ad7bb2b0

View File

@ -148,7 +148,9 @@ class Executor final {
// chdir to cwd_, if set. Defaults to current working directory.
std::string cwd_ = []() {
std::string cwd = sapi::file_util::fileops::GetCWD();
PCHECK(!cwd.empty());
if (cwd.empty()) {
PLOG(WARNING) << "Getting current working directory";
}
return cwd;
}();