From 736a04c66b679c210551ba2921b43155a57db527 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 8 Feb 2015 12:10:13 +0100 Subject: better error message --- compiler/vm.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/vm.nim b/compiler/vm.nim index b682b4e25..090498f10 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1438,7 +1438,9 @@ proc evalMacroCall*(module: PSym, n, nOrig: PNode, sym: PSym): PNode = # immediate macros can bypass any type and arity checking so we check the # arity here too: if sym.typ.len > n.safeLen and sym.typ.len > 1: - globalError(n.info, "got $#, but expected $# argument(s)" % [$