diff options
Diffstat (limited to 'lib/system/mmdisp.nim')
-rwxr-xr-x | lib/system/mmdisp.nim | 4 |
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 |