From 4ce1f7137cf01353c71d6bbf173578e107472b8f Mon Sep 17 00:00:00 2001 From: Aidan Date: Fri, 21 Aug 2020 18:02:49 -0700 Subject: [PATCH] better log line, fix issue with sym eval --- ast/func_table.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ast/func_table.go b/ast/func_table.go index 03e16bd..2121874 100644 --- a/ast/func_table.go +++ b/ast/func_table.go @@ -73,9 +73,8 @@ func (f Function) ParseFunction(args *Token) bool { if iter.Tag != f.Args[len(f.Args) - total] { log.Log(log.ERR, - "argument of type " + GetTagAsStr(iter.Tag) + - "passed in when " + GetTagAsStr(f.Args[len(f.Args) - total]) + - " was expected", + "argument is " + GetTagAsStr(iter.Tag) + + "should be " + GetTagAsStr(f.Args[len(f.Args) - total]), "ftable") return false } @@ -118,7 +117,7 @@ func (f Function) LazyParseFunction(args *Token) bool { */ func (f Function) CallFunction(args *Token, vt VarTable, ft FuncTable) *Token { if !f.EvalLazy { - args = args.Eval(ft, vt, !f.SymLazy) + args = args.Eval(ft, vt, f.SymLazy) } passes := false