vm: return more detailed error from emit.Array
This commit is contained in:
parent
ad9ede455e
commit
2bb3ff2aff
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue