diff options
Diffstat (limited to 'interp')
-rw-r--r-- | interp/errors.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interp/errors.go b/interp/errors.go index f8c7e4e83..87c99587a 100644 --- a/interp/errors.go +++ b/interp/errors.go @@ -47,10 +47,12 @@ func (e *Error) Error() string { // location of the instruction. The location information may not be complete as // it depends on debug information in the IR. func (e *evalPackage) errorAt(inst llvm.Value, err error) *Error { + pos := getPosition(inst) return &Error{ ImportPath: e.packagePath, - Pos: getPosition(inst), + Pos: pos, Err: err, + Traceback: []ErrorLine{{pos, inst}}, } } |