Browse Source

Print out a the command that fails to spawn

default_compile_flags
vector-of-bool 5 years ago
parent
commit
37aa94e350
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/dds/proc.win.cpp

+ 2
- 2
src/dds/proc.win.cpp View File



namespace { namespace {


[[noreturn]] void throw_system_error(const char* what) {
[[noreturn]] void throw_system_error(std::string what) {
throw std::system_error(std::error_code(::GetLastError(), std::system_category()), what); throw std::system_error(std::error_code(::GetLastError(), std::system_category()), what);
} }


&startup_info, &startup_info,
&proc_info); &proc_info);
if (!okay) { if (!okay) {
throw_system_error("Failed to spawn a child process");
throw_system_error(fmt::format("Failed to spawn child process [{}]", cmd_str));
} }


writer.reset(); writer.reset();

Loading…
Cancel
Save