diff options
author | Valentin Wüstholz <wuestholz@gmail.com> | 2017-05-22 22:56:06 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-05-22 23:48:07 +0800 |
commit | 04b668b2325e48774aaa6859213c72598fa818fa (patch) | |
tree | 6bafcdeaff508cdb04f3550cf4ab00d3232c1b97 /core | |
parent | e7119ce12d86634dd487ab3c55bf9b98f327236c (diff) | |
download | dexon-04b668b2325e48774aaa6859213c72598fa818fa.tar.gz dexon-04b668b2325e48774aaa6859213c72598fa818fa.tar.zst dexon-04b668b2325e48774aaa6859213c72598fa818fa.zip |
core/vm: improve error message for invalid opcodes
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/interpreter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index e54c72575..17edc9e33 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -151,7 +151,7 @@ func (in *Interpreter) Run(snapshot int, contract *Contract, input []byte) (ret // if the op is invalid abort the process and return an error if !operation.valid { - return nil, fmt.Errorf("invalid opcode %x", op) + return nil, fmt.Errorf("invalid opcode 0x%x", int(op)) } // validate the stack and make sure there enough stack items available |