summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-02-13 03:39:11 +0100
committerAraq <rumpf_a@web.de>2011-02-13 03:39:11 +0100
commit627e192f64fbfadb6db48ae31cf518973d380928 (patch)
treebf4bfe805660ffe234159d52927ba68e96e49e84 /lib/system
parent5b28d08203ba36e84c8e381761db182c0393d07f (diff)
downloadNim-627e192f64fbfadb6db48ae31cf518973d380928.tar.gz
basic continue after error works; interactive mode more useful
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/mmdisp.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim
index a85d69b0d..de604869b 100755
--- a/lib/system/mmdisp.nim
+++ b/lib/system/mmdisp.nim
@@ -56,7 +56,9 @@ var
   gOutOfMem: ref EOutOfMemory
 
 proc raiseOutOfMem() {.noreturn.} =
-  if gOutOfMem == nil: quit("out of memory; cannot even throw an exception")
+  if gOutOfMem == nil: 
+    echo("out of memory; cannot even throw an exception")
+    quit(1)
   gOutOfMem.msg = "out of memory"
   raise gOutOfMem