From 0c603c234f01567f731f07d7051ea92407d2e840 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 10 Apr 2022 03:05:31 -0400 Subject: Extra node data in errors to make your life easier --- src/texec/eval.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/texec') diff --git a/src/texec/eval.go b/src/texec/eval.go index dff3ef2..3d73ec1 100644 --- a/src/texec/eval.go +++ b/src/texec/eval.go @@ -74,6 +74,7 @@ func errOutNode(msg string, n tparse.Node) { fmt.Println(msg) fmt.Println(cart) fmt.Printf("Line: %v Char: %v\n", n.Data.Line, n.Data.Char) + fmt.Printf("Data: %s\n", n.Data.Data) fmt.Println("==== END ERROR ====") panic(">>> PANIC FROM EVAL <<<") } -- cgit v1.2.3