summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-02-16 19:41:06 +0100
committerAraq <rumpf_a@web.de>2018-02-17 00:40:48 +0100
commit037ce16f44315271ec3da49bc80e117e29403d20 (patch)
tree2499083db0c9cb4437b39cf618dc3b6def68b15c /compiler/semexprs.nim
parentf3b8d922169bcf99d7430854d53765082f3ad5a8 (diff)
downloadNim-037ce16f44315271ec3da49bc80e117e29403d20.tar.gz
improve the error message for mutability problems
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 7f58e266e..f1d226160 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -474,7 +474,7 @@ proc newHiddenAddrTaken(c: PContext, n: PNode): PNode =
     result = newNodeIT(nkHiddenAddr, n.info, makeVarType(c, n.typ))
     addSon(result, n)
     if isAssignable(c, n) notin {arLValue, arLocalLValue}:
-      localError(n.info, errVarForOutParamNeededX, $n)
+      localError(n.info, errVarForOutParamNeededX, renderNotLValue(n))
 
 proc analyseIfAddressTaken(c: PContext, n: PNode): PNode =
   result = n