diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-10 03:05:31 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-10 03:05:31 -0400 |
commit | 0c603c234f01567f731f07d7051ea92407d2e840 (patch) | |
tree | cccf598a364f8beb35826f36ce16331fe76bd562 /src/texec | |
parent | 9a59d9d8cbc77e14a85664e23a02b883eb52c2a1 (diff) |
Extra node data in errors to make your life easier
Diffstat (limited to 'src/texec')
-rw-r--r-- | src/texec/eval.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 <<<") } |