1
0
Fork 0

retrieve windows error string

This commit is contained in:
Wilfried Goesgens 2017-02-06 16:08:25 +01:00
parent 21dd8888f6
commit 3a94a12370
1 changed files with 4 additions and 2 deletions

View File

@ -383,7 +383,8 @@ static bool startProcess(TRI_external_t* external, HANDLE rd, HANDLE wr) {
PROCESS_INFORMATION piProcInfo; PROCESS_INFORMATION piProcInfo;
STARTUPINFO siStartInfo; STARTUPINFO siStartInfo;
BOOL bFuncRetn = FALSE; BOOL bFuncRetn = FALSE;
TRI_ERRORBUF;
args = makeWindowsArgs(external); args = makeWindowsArgs(external);
if (args == NULL) { if (args == NULL) {
LOG(ERR) << "execute of '" << external->_executable LOG(ERR) << "execute of '" << external->_executable
@ -418,8 +419,9 @@ static bool startProcess(TRI_external_t* external, HANDLE rd, HANDLE wr) {
TRI_Free(TRI_UNKNOWN_MEM_ZONE, args); TRI_Free(TRI_UNKNOWN_MEM_ZONE, args);
if (bFuncRetn == FALSE) { if (bFuncRetn == FALSE) {
TRI_SYSTEM_ERROR()
LOG(ERR) << "execute of '" << external->_executable LOG(ERR) << "execute of '" << external->_executable
<< "' failed, error: " << GetLastError(); << "' failed, error: " << GetLastError() << " " << TRI_GET_ERRORBUF;
return false; return false;
} else { } else {
external->_pid = piProcInfo.dwProcessId; external->_pid = piProcInfo.dwProcessId;