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)
default:
if es[i] != nil {
w.Err = errors.New("unsupported type")
w.Err = fmt.Errorf("unsupported type: %v", e)
return
}
Opcodes(w, opcode.PUSHNULL)