Improve error message
This commit is contained in:
parent
857ed8934b
commit
7091af176a
@ -229,8 +229,11 @@ int Agent::handleStartProcessPacket(ReadBuffer &packet)
|
||||
int ret = success ? 0 : GetLastError();
|
||||
|
||||
trace("CreateProcess: %s %d",
|
||||
(success ? "success" : "fail"),
|
||||
(success == ERROR_SUCCESS ? "success" : "fail"),
|
||||
(int)pi.dwProcessId);
|
||||
if(ret != ERROR_SUCCESS) {
|
||||
trace("Create process error code: %d", GetLastError());
|
||||
}
|
||||
|
||||
if (success) {
|
||||
CloseHandle(pi.hThread);
|
||||
|
Loading…
Reference in New Issue
Block a user