diff options
Diffstat (limited to 'interp/interp_test.go')
-rw-r--r-- | interp/interp_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/interp/interp_test.go b/interp/interp_test.go index 55ad3eaef..fc567af20 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -57,16 +57,14 @@ func runTest(t *testing.T, pathPrefix string) { if err != nil { if err, match := err.(*Error); match { println(err.Error()) - if !err.Inst.IsNil() { - err.Inst.Dump() - println() + if len(err.Inst) != 0 { + println(err.Inst) } if len(err.Traceback) > 0 { println("\ntraceback:") for _, line := range err.Traceback { println(line.Pos.String() + ":") - line.Inst.Dump() - println() + println(line.Inst) } } } |