From 8cc7c6d57202575e2ac4fc5024830333308efee9 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 14 Jul 2021 15:44:00 +0200 Subject: [PATCH] interp: populate Inst field in interp.Error It is used in the main package but wasn't actually set anywhere. --- interp/errors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/interp/errors.go b/interp/errors.go index 48cf85df..c90de332 100644 --- a/interp/errors.go +++ b/interp/errors.go @@ -57,6 +57,7 @@ func (r *runner) errorAt(inst instruction, err error) *Error { pos := getPosition(inst.llvmInst) return &Error{ ImportPath: r.pkgName, + Inst: inst.llvmInst, Pos: pos, Err: err, Traceback: []ErrorLine{{pos, inst.llvmInst}},