vm: return more detailed error from emit.Array

This commit is contained in:
Anna Shaleva 2021-03-24 17:05:05 +03:00
parent ad9ede455e
commit 2bb3ff2aff

View file

@ -94,7 +94,7 @@ func Array(w *io.BinWriter, es ...interface{}) {
Bool(w, e) Bool(w, e)
default: default:
if es[i] != nil { if es[i] != nil {
w.Err = errors.New("unsupported type") w.Err = fmt.Errorf("unsupported type: %v", e)
return return
} }
Opcodes(w, opcode.PUSHNULL) Opcodes(w, opcode.PUSHNULL)