aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/vm.go')
-rw-r--r--core/vm/vm.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 205934822..09cddc2f8 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -188,7 +188,10 @@ func (evm *EVM) Run(contract *Contract, input []byte) (ret []byte, err error) {
mem.Resize(newMemSize.Uint64())
// Add a log message
if evm.cfg.Debug {
- evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
+ err = evm.cfg.Tracer.CaptureState(evm.env, pc, op, contract.Gas, cost, mem, stack, contract, evm.env.Depth(), nil)
+ if err != nil {
+ return nil, err
+ }
}
if opPtr := evm.jumpTable[op]; opPtr.valid {