mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +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)
|
||||
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