pkg/terminal: Use new starlark CallFrame API

This commit is contained in:
Derek Parker
2019-07-08 15:32:59 -07:00
committed by Alessandro Arzilli
parent bb7f3f2f92
commit 86ed5b66a1

View File

@ -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)
}