We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d79db commit 10d31a6Copy full SHA for 10d31a6
example/example.cpp
@@ -30,6 +30,8 @@ static auto Spawn(mp::EventLoop& loop, const std::string& process_argv0, const s
30
fs::path path = process_argv0;
31
path.remove_filename();
32
path.append(new_exe_name);
33
+ if (!fs::exists(path))
34
+ throw std::runtime_error{std::string{path} + " is missing, probably needs to be built?"};
35
return {path.string(), std::to_string(fd)};
36
});
37
return std::make_tuple(mp::ConnectStream<InitInterface>(loop, fd), pid);
0 commit comments