Bug 20572 – spawnProcess to print process filename on error

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-02-09T05:59:27Z
Last change time
2024-12-01T16:36:19Z
Keywords
pull
Assigned to
No Owner
Creator
Jonathan Marler
Moved to GitHub: phobos#10406 →

Comments

Comment #0 by johnnymarler — 2020-02-09T05:59:27Z
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 by dlang-bot — 2020-02-09T06:02:23Z
@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 by robert.schadek — 2024-12-01T16:36:19Z
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