summary refs log tree commit diff stats
path: root/compiler/vmops.nim
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2015-09-03 12:51:21 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2015-09-05 14:18:37 +0300
commit04a4f354003457004d7535bf3c71b4c992f0f0ef (patch)
tree52ea2b07e7b53edadcbba426d301a01fcdab41d6 /compiler/vmops.nim
parent0320c0c73b1065492c036eff09fb1a7b424223cc (diff)
downloadNim-04a4f354003457004d7535bf3c71b4c992f0f0ef.tar.gz
VM produces objects.
Diffstat (limited to 'compiler/vmops.nim')
-rw-r--r--compiler/vmops.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmops.nim b/compiler/vmops.nim
index 1023d4783..e1a0dfef8 100644
--- a/compiler/vmops.nim
+++ b/compiler/vmops.nim
@@ -46,7 +46,7 @@ template wrap2svoid(op) {.immediate, dirty.} =
 
 proc getCurrentExceptionMsgWrapper(a: VmArgs) {.nimcall.} =
   setResult(a, if a.currentException.isNil: ""
-               else: a.currentException.sons[2].strVal)
+               else: a.currentException.sons[3].skipColon.strVal)
 
 proc registerAdditionalOps*(c: PCtx) =
   wrap1f(sqrt)