diff options
author | Araq <rumpf_a@web.de> | 2015-06-27 23:35:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-06-29 02:48:31 +0200 |
commit | 2297a1aa6048fcbcffca4e2c2e4ede275261e83d (patch) | |
tree | 18366ccd56ca569fa892d0af5ac68b96ef4bbe52 /lib/pure/osproc.nim | |
parent | ace9299a32d09bd25f9ccb8e8d77efca0185fb26 (diff) | |
download | Nim-2297a1aa6048fcbcffca4e2c2e4ede275261e83d.tar.gz |
much better error message if an exe cannot be found
Diffstat (limited to 'lib/pure/osproc.nim')
-rw-r--r-- | lib/pure/osproc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 33f5419d5..add4bc0a8 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -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 |