add data.sysCommand when startProcessAuxSpawn raises

This commit is contained in:
Timothee Cour 2018-09-06 03:12:10 -07:00
commit 67aa8eab0b
2 changed files with 5 additions and 5 deletions

View file

@ -902,7 +902,7 @@ elif not defined(useNimRtl):
discard posix_spawn_file_actions_destroy(fops)
discard posix_spawnattr_destroy(attr)
if res != 0'i32: raiseOSError(OSErrorCode(res))
if res != 0'i32: raiseOSError(OSErrorCode(res), data.sysCommand)
return pid
else: