Skip to content

Commit

Permalink
Merge pull request #2089 from nspcc-dev/fix-emit
Browse files Browse the repository at this point in the history
vm/emit: improve error message
  • Loading branch information
roman-khimov authored Jul 22, 2021
2 parents 14a52c9 + 808c30e commit 6b852fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vm/emit/emit.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func Array(w *io.BinWriter, es ...interface{}) {
Bool(w, e)
default:
if es[i] != nil {
w.Err = fmt.Errorf("unsupported type: %v", e)
w.Err = fmt.Errorf("unsupported type: %T", e)
return
}
Opcodes(w, opcode.PUSHNULL)
Expand Down

0 comments on commit 6b852fc

Please sign in to comment.