From 80ad7bb2b0f82083378b79b71525a49fc5ac64a3 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Thu, 5 Aug 2021 03:02:44 -0700 Subject: [PATCH] Replace a CHECK with a warning PiperOrigin-RevId: 388893117 Change-Id: I0b0ccf2045aea09d31ae1605b205aab456bd8550 --- sandboxed_api/sandbox2/executor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/executor.h b/sandboxed_api/sandbox2/executor.h index 0bd0cfc..1e7ddb3 100644 --- a/sandboxed_api/sandbox2/executor.h +++ b/sandboxed_api/sandbox2/executor.h @@ -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; }();