aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Wüstholz <wuestholz@gmail.com>2017-05-22 22:56:06 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-05-22 23:48:07 +0800
commit04b668b2325e48774aaa6859213c72598fa818fa (patch)
tree6bafcdeaff508cdb04f3550cf4ab00d3232c1b97
parente7119ce12d86634dd487ab3c55bf9b98f327236c (diff)
downloadgo-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar.gz
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar.bz2
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar.lz
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar.xz
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.tar.zst
go-tangerine-04b668b2325e48774aaa6859213c72598fa818fa.zip
core/vm: improve error message for invalid opcodes
-rw-r--r--core/vm/interpreter.go2
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