mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 02:07:58 +08:00
pkg/terminal: Use new starlark CallFrame API
This commit is contained in:
committed by
Alessandro Arzilli
parent
bb7f3f2f92
commit
86ed5b66a1
@ -289,7 +289,7 @@ func decorateError(thread *starlark.Thread, err error) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
pos := thread.Caller().Position()
|
||||
pos := thread.CallFrame(1).Pos
|
||||
if pos.Col > 0 {
|
||||
return fmt.Errorf("%s:%d:%d: %v", pos.Filename(), pos.Line, pos.Col, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user