From 808c30e7d72034569bda50d6ae44760b8adf18bd Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Thu, 22 Jul 2021 14:23:31 +0300 Subject: [PATCH] vm/emit: improve error message Show unsupported type instead of value. Signed-off-by: Evgeniy Stratonikov --- pkg/vm/emit/emit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vm/emit/emit.go b/pkg/vm/emit/emit.go index 9c6da396a..fcc246e4f 100644 --- a/pkg/vm/emit/emit.go +++ b/pkg/vm/emit/emit.go @@ -96,7 +96,7 @@ func Array(w *io.BinWriter, es ...interface{}) { Bool(w, e) default: if es[i] != nil { - w.Err = fmt.Errorf("unsupported type: %v", e) + w.Err = fmt.Errorf("unsupported type: %T", e) return } Opcodes(w, opcode.PUSHNULL)