diff --git a/util/posix/spawn_subprocess.cc b/util/posix/spawn_subprocess.cc index df5b4a3f..8f1f13d1 100644 --- a/util/posix/spawn_subprocess.cc +++ b/util/posix/spawn_subprocess.cc @@ -190,7 +190,8 @@ bool SpawnSubprocess(const std::vector& argv, auto execve_fp = use_path ? execvpe : execve; execve_fp(argv_for_spawn[0], argv_for_spawn, envp_for_spawn); - PLOG(FATAL) << (use_path ? "execvpe" : "execve"); + PLOG(FATAL) << (use_path ? "execvpe" : "execve") << " " + << argv_for_spawn[0]; #else #if BUILDFLAG(IS_APPLE) PosixSpawnAttr attr; @@ -218,7 +219,8 @@ bool SpawnSubprocess(const std::vector& argv, attr_p, argv_for_spawn, envp_for_spawn)) != 0) { - PLOG(FATAL) << (use_path ? "posix_spawnp" : "posix_spawn"); + PLOG(FATAL) << (use_path ? "posix_spawnp" : "posix_spawn") << " " + << argv_for_spawn[0]; } // _exit() instead of exit(), because fork() was called.