<p>I plan one final change to the spawning module messages. Since both g_spawn/*nix and the Windows spawn are complex calls, where several functions may fail, the plain error message may not be insufficient to understand what's going on.</p>

<p>To avoid replacing all g_spawn/*nix messages, and handle this situation, the final messages will be as follows:</p>

<p>exec() or CreateProcess() failed, which are almost 100% of the cases => the plain errno/winerror message is returned: "No such file or directory", "Invalid exec format" and so on.</p>

<p>Some other function failed (exceedingly rare) -> Descriptive text (errno/winerror message), for example: "Failed to read data from child process (Bad file descriptor)" or "Unexpected error in select() reading data from a child process (I/O error)". These examples are a bit random, I have never seen g_spawn failing like that.</p>

<p>And there will be no different error messages depending on whether spawn is compiled for testing. The above text should be a reasonable compromise - too bad it haven't occurred to me earlier.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/701#issuecomment-149626060">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxM_13dKgHFRYyvyNOG4SVBu6ko3ks5o9mWxgaJpZM4GRgsl.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/701#issuecomment-149626060"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>