Fixed stacktrace and incorrect column number in REPL.
h3rald h3rald@h3rald.com
Tue, 21 Mar 2017 22:36:35 +0100
2 files changed,
4 insertions(+),
1 deletions(-)
M
core/interpreter.nim
→
core/interpreter.nim
@@ -166,6 +166,7 @@ let msg = getCurrentExceptionMsg()
i.stack = i.stackcopy error("$1:$2,$3 $4" % [i.currSym.filename, $i.currSym.line, $i.currSym.column, msg]) i.stackTrace + i.trace = @[] raise MinTrappedException(msg: msg) except MinTrappedException: raise@@ -174,6 +175,7 @@ let msg = getCurrentExceptionMsg()
i.stack = i.stackcopy i.error(msg) i.stackTrace + i.trace = @[] raise MinTrappedException(msg: msg) if i.stack.len > 0: return i.stack[i.stack.len - 1]