diff options
author | pcloudy <pcloudy@google.com> | 2017-09-12 12:21:15 +0200 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2017-09-12 14:08:08 +0200 |
commit | 31089bba3aecc9192220ab91a0149560498f6965 (patch) | |
tree | f5ab9d849bf0d92795381ee786a6460cfffc199f /src/tools/launcher | |
parent | 377c1035e31307566c81038fd0ee7801faec1ceb (diff) |
Windows Native Launcher: Print command line when launch failed.
This will help us debug some Launcher errors.
RELNOTES: None
PiperOrigin-RevId: 168354216
Diffstat (limited to 'src/tools/launcher')
-rw-r--r-- | src/tools/launcher/launcher.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/launcher/launcher.cc b/src/tools/launcher/launcher.cc index eec963e4eb..6d91c85ffd 100644 --- a/src/tools/launcher/launcher.cc +++ b/src/tools/launcher/launcher.cc @@ -180,7 +180,9 @@ ExitCode BinaryLauncherBase::LaunchProcess( /* lpStartupInfo */ &startupInfo, /* lpProcessInformation */ &processInfo); if (!ok) { - PrintError("Cannot launch process:\n%s", GetLastErrorString().c_str()); + PrintError("Cannot launch process: %s\nReason: %s", + cmdline.cmdline, + GetLastErrorString().c_str()); return GetLastError(); } WaitForSingleObject(processInfo.hProcess, INFINITE); |