diff options
author | Wim <wim@42.be> | 2020-03-28 23:41:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 23:41:35 +0100 |
commit | 0f2d8a599c6b3f2ee6cba4d0d887fe021df84ca6 (patch) | |
tree | 61c5f3d3a6ebcfd0fe0a371bfbd040e6918353ca /vendor/github.com/d5/tengo/v2/vm.go | |
parent | 54b3143a1d2997abc2a38bc608437c4ac362245f (diff) | |
download | matterbridge-msglm-0f2d8a599c6b3f2ee6cba4d0d887fe021df84ca6.tar.gz matterbridge-msglm-0f2d8a599c6b3f2ee6cba4d0d887fe021df84ca6.tar.bz2 matterbridge-msglm-0f2d8a599c6b3f2ee6cba4d0d887fe021df84ca6.zip |
Update vendor d5/tengo (#1066)
Diffstat (limited to 'vendor/github.com/d5/tengo/v2/vm.go')
-rw-r--r-- | vendor/github.com/d5/tengo/v2/vm.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/d5/tengo/v2/vm.go b/vendor/github.com/d5/tengo/v2/vm.go index 783a54a9..af8783f0 100644 --- a/vendor/github.com/d5/tengo/v2/vm.go +++ b/vendor/github.com/d5/tengo/v2/vm.go @@ -80,14 +80,14 @@ func (v *VM) Run() (err error) { if err != nil { filePos := v.fileSet.Position( v.curFrame.fn.SourcePos(v.ip - 1)) - err = fmt.Errorf("Runtime Error: %s\n\tat %s", - err.Error(), filePos) + err = fmt.Errorf("Runtime Error: %w\n\tat %s", + err, filePos) for v.framesIndex > 1 { v.framesIndex-- v.curFrame = &v.frames[v.framesIndex-1] filePos = v.fileSet.Position( v.curFrame.fn.SourcePos(v.curFrame.ip - 1)) - err = fmt.Errorf("%s\n\tat %s", err.Error(), filePos) + err = fmt.Errorf("%w\n\tat %s", err, filePos) } return err } |