mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue