From c3a34d9373966265fdbb109a5c8d9cff737f8c4d Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 11 Jul 2019 18:17:47 +0200 Subject: [PATCH] fix lack of newErr instance License: MIT Signed-off-by: Jakub Sztandera --- chain/invoker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/invoker.go b/chain/invoker.go index 6897d31f9..d0f3c3129 100644 --- a/chain/invoker.go +++ b/chain/invoker.go @@ -64,7 +64,7 @@ func (*invoker) transform(instance Invokee) (nativeCode, error) { exports := instance.Exports() for i, m := range exports { i := i - newErr = func(str string) error { + newErr := func(str string) error { return fmt.Errorf("transform(%s) export(%d): %s", itype.Name(), i, str) } if m == nil {