Improves osproc.startProcess error message on POSIX. Ref #2183.

This commit is contained in:
Dominik Picheta
2015-08-23 22:07:37 +01:00
parent 1b73cd41bf
commit 9b0ac8afa8

View File

@@ -785,7 +785,8 @@ elif not defined(useNimRtl):
var error: cint
let sizeRead = read(data.pErrorPipe[readIdx], addr error, sizeof(error))
if sizeRead == sizeof(error):
raiseOSError($strerror(error))
raiseOSError("Could not find command: '$1'. OS error: $2" %
[$data.sysCommand, $strerror(error)])
return pid