diff options
Diffstat (limited to 'lib/server/LocalProcessStream.cpp')
-rw-r--r-- | lib/server/LocalProcessStream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/server/LocalProcessStream.cpp b/lib/server/LocalProcessStream.cpp index fef7166b..9750aca1 100644 --- a/lib/server/LocalProcessStream.cpp +++ b/lib/server/LocalProcessStream.cpp @@ -120,8 +120,8 @@ std::auto_ptr<IOStream> LocalProcessStream(const char *CommandLine, pid_t &rPidO HANDLE writeInChild, readFromChild; if(!CreatePipe(&readFromChild, &writeInChild, &secAttr, 0)) { - ::syslog(LOG_ERR, "Failed to CreatePipe for child process: " - "error %d", GetLastError()); + BOX_ERROR("Failed to CreatePipe for child process: " + GetErrorMessage(GetLastError())); THROW_EXCEPTION(ServerException, SocketPairFailed) } SetHandleInformation(readFromChild, HANDLE_FLAG_INHERIT, 0); @@ -155,8 +155,8 @@ std::auto_ptr<IOStream> LocalProcessStream(const char *CommandLine, pid_t &rPidO if(!result) { - ::syslog(LOG_ERR, "Failed to CreateProcess: '%s': " - "error %d", CommandLine, GetLastError()); + BOX_ERROR("Failed to CreateProcess: '" << CommandLine << + "': " << GetErrorMessage(GetLastError())); CloseHandle(writeInChild); CloseHandle(readFromChild); THROW_EXCEPTION(ServerException, ServerForkError) |