win: generate_dump: PLOG() when OpenProcess() fails

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/1408353011 .
This commit is contained in:
Mark Mentovai 2015-11-09 15:50:33 -05:00
parent 81ece89d6a
commit 1c1ce825bd

View File

@ -154,7 +154,7 @@ int GenerateDumpMain(int argc, char* argv[]) {
ScopedKernelHANDLE process(
OpenProcess(kXPProcessAllAccess, false, options.pid));
if (!process.is_valid()) {
LOG(ERROR) << "could not open process " << options.pid;
PLOG(ERROR) << "could not open process " << options.pid;
return EXIT_FAILURE;
}
#endif // OS_MACOSX