Skip to content

Commit

Permalink
core/vm: improve error message for invalid opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
wuestholz authored and obscuren committed May 22, 2017
1 parent e7119ce commit 04b668b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04b668b

Please sign in to comment.