Minor change to a error log output in PlatformUtil

This commit is contained in:
Leon Styhre 2023-06-21 22:44:29 +02:00
parent 9ced3a88a8
commit e7e3db7f6d

View file

@ -101,13 +101,12 @@ namespace Utils
command = "cd " + startDirectory + " && " + command;
if (!(commandPipe = reinterpret_cast<FILE*>(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);