fixes #4764, fixes #4731, fixes #4724

This commit is contained in:
Araq 2016-09-14 19:57:14 +02:00
commit 6a1b8e691f
5 changed files with 14 additions and 9 deletions

View file

@ -43,6 +43,7 @@ proc setupVM*(module: PSym; scriptName: string): PEvalContext =
template cbos(name, body) {.dirty.} =
result.registerCallback "stdlib.system." & astToStr(name),
proc (a: VmArgs) =
errorMsg = nil
try:
body
except OSError: