mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-14 02:36:27 +00:00
Update to tengo v2 (#976)
This commit is contained in:
12
vendor/github.com/d5/tengo/v2/stdlib/errors.go
generated
vendored
Normal file
12
vendor/github.com/d5/tengo/v2/stdlib/errors.go
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
package stdlib
|
||||
|
||||
import (
|
||||
"github.com/d5/tengo/v2"
|
||||
)
|
||||
|
||||
func wrapError(err error) tengo.Object {
|
||||
if err == nil {
|
||||
return tengo.TrueValue
|
||||
}
|
||||
return &tengo.Error{Value: &tengo.String{Value: err.Error()}}
|
||||
}
|
Reference in New Issue
Block a user