arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
449 stars 90 forks source link

Fix exception when `CreateProcessW` fails and add test for it #98

Closed hebasto closed 6 months ago

hebasto commented 7 months ago

This PR makes the behavior consistent across all supported systems.

Also a new test_exception has been introduced to avoid any related regressions in the future.

The error strings are the same as used in the Boost.Process, which makes migration from it a bit easier :)