Merge pull request #2089 from nspcc-dev/fix-emit

vm/emit: improve error message
This commit is contained in:
Roman Khimov 2021-07-22 15:17:59 +03:00 committed by GitHub
commit 6b852fc7b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,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 = fmt.Errorf("unsupported type: %v", e) w.Err = fmt.Errorf("unsupported type: %T", e)
return return
} }
Opcodes(w, opcode.PUSHNULL) Opcodes(w, opcode.PUSHNULL)