From 325d62b41c03f0530513a4f404cc8d7349b6885b Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 5 Mar 2019 23:08:54 +0100 Subject: Update vendor d5/tengo --- vendor/github.com/d5/tengo/stdlib/errors.go | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 vendor/github.com/d5/tengo/stdlib/errors.go (limited to 'vendor/github.com/d5/tengo/stdlib/errors.go') diff --git a/vendor/github.com/d5/tengo/stdlib/errors.go b/vendor/github.com/d5/tengo/stdlib/errors.go deleted file mode 100644 index a2942bb0..00000000 --- a/vendor/github.com/d5/tengo/stdlib/errors.go +++ /dev/null @@ -1,11 +0,0 @@ -package stdlib - -import "github.com/d5/tengo/objects" - -func wrapError(err error) objects.Object { - if err == nil { - return objects.TrueValue - } - - return &objects.Error{Value: &objects.String{Value: err.Error()}} -} -- cgit v1.2.3