much better error message if an exe cannot be found
This commit is contained in:
parent
ace9299a32
commit
2297a1aa60
2 changed files with 6 additions and 3 deletions
|
|
@ -468,7 +468,7 @@ when defined(Windows) and not defined(useNimRtl):
|
|||
fileClose(si.hStdError)
|
||||
|
||||
if e != nil: dealloc(e)
|
||||
if success == 0: raiseOSError(lastError)
|
||||
if success == 0: raiseOSError(lastError, command)
|
||||
# Close the handle now so anyone waiting is woken:
|
||||
discard closeHandle(procInfo.hThread)
|
||||
result.fProcessHandle = procInfo.hProcess
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue