We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e324f commit 510f145Copy full SHA for 510f145
interp/errors.go
@@ -47,10 +47,12 @@ func (e *Error) Error() string {
47
// location of the instruction. The location information may not be complete as
48
// it depends on debug information in the IR.
49
func (e *evalPackage) errorAt(inst llvm.Value, err error) *Error {
50
+ pos := getPosition(inst)
51
return &Error{
52
ImportPath: e.packagePath,
- Pos: getPosition(inst),
53
+ Pos: pos,
54
Err: err,
55
+ Traceback: []ErrorLine{{pos, inst}},
56
}
57
58
0 commit comments