Issue 20572 - spawnProcess to print process filename on error
Summary: spawnProcess to print process filename on error
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All Windows
: P4 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-02-09 05:59 UTC by Jonathan Marler
Modified: 2024-12-01 16:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jonathan Marler 2020-02-09 05:59:27 UTC
It would be helpful if the ProcessException thrown by spawnProcess also included the process name.  So instead of:

Failed to spawn new process (The system cannot find the file specified.)

This message would be more helpful:

Failed to spawn process 'SOMEPROGRAM' (The system cannot find the file specified.)
Comment 1 Dlang Bot 2020-02-09 06:02:23 UTC
@marler8997 updated dlang/phobos pull request #7394 "Include filename when CreateProcess fails with file not found" fixing this issue:

- Include filename when CreateProcess fails with file not found
  
  Fix issue 20572

https://github.com/dlang/phobos/pull/7394
Comment 2 dlangBugzillaToGithub 2024-12-01 16:36:19 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10406

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB