From e7e3db7f6d23c2b70e602358240ba38133d95ac9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 21 Jun 2023 22:44:29 +0200 Subject: [PATCH] Minor change to a error log output in PlatformUtil --- es-core/src/utils/PlatformUtil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp index 5a6dacccb..8535deabc 100644 --- a/es-core/src/utils/PlatformUtil.cpp +++ b/es-core/src/utils/PlatformUtil.cpp @@ -101,13 +101,12 @@ namespace Utils command = "cd " + startDirectory + " && " + command; if (!(commandPipe = reinterpret_cast(popen(command.c_str(), "r")))) { - LOG(LogError) << "Couldn't open pipe to command."; + LOG(LogError) << "Couldn't open pipe to command"; return -1; } - while (fgets(buffer.data(), buffer.size(), commandPipe) != nullptr) { + while (fgets(buffer.data(), buffer.size(), commandPipe) != nullptr) commandOutput += buffer.data(); - } returnValue = pclose(commandPipe);