From bf8e371d7ee31b8d8573b4bed0a426022330a631 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 6 Feb 2016 01:29:12 +0100 Subject: [PATCH] Revert raiseOSError change --- lib/pure/osproc.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 73e3f3e28e..38b0ed4a30 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -875,8 +875,7 @@ elif not defined(useNimRtl): var error: cint let sizeRead = read(data.pErrorPipe[readIdx], addr error, sizeof(error)) if sizeRead == sizeof(error): - raise newException(OSError, - "Could not find command: '$1'. OS error: $2" % + raiseOSError("Could not find command: '$1'. OS error: $2" % [$data.sysCommand, $strerror(error)]) return pid