summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-06 01:53:57 +0100
committerAraq <rumpf_a@web.de>2014-11-06 01:53:57 +0100
commit9500dfcc2e7b56a626744eff3000612b13c79575 (patch)
tree7911f4edec5f96933968d3701087e85813646cee /compiler
parentee9c70e0348b0586d69faa06d2ed1655bb216a6a (diff)
downloadNim-9500dfcc2e7b56a626744eff3000612b13c79575.tar.gz
fixes #1612
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semexprs.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 287a11b33..1ceec7fbe 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -1943,8 +1943,7 @@ proc semExport(c: PContext, n: PNode): PNode =
     var o: TOverloadIter
     var s = initOverloadIter(o, c, a)
     if s == nil:
-      localError(a.info, errGenerated, "invalid expr for 'export': " &
-          renderTree(a))
+      localError(a.info, errGenerated, "cannot export: " & renderTree(a))
     elif s.kind == skModule:
       # forward everything from that module:
       strTableAdd(c.module.tab, s)