summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-09-14 19:57:14 +0200
committerAraq <rumpf_a@web.de>2016-09-14 19:59:32 +0200
commit6a1b8e691fdd413578bb9e315f34a53369f111ed (patch)
tree82051f31d86d3dbe7c2cc1dc7ba52acc341bc5ac /compiler
parentda575bec541b4430610cb0063e3209db9793f008 (diff)
downloadNim-6a1b8e691fdd413578bb9e315f34a53369f111ed.tar.gz
fixes #4764, fixes #4731, fixes #4724
Diffstat (limited to 'compiler')
-rw-r--r--compiler/scriptconfig.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim
index 0f1dfaa1e..f04cef0ee 100644
--- a/compiler/scriptconfig.nim
+++ b/compiler/scriptconfig.nim
@@ -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: