aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/runner.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/evm/runner.go')
-rw-r--r--cmd/evm/runner.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go
index ae5678110..96de0c76a 100644
--- a/cmd/evm/runner.go
+++ b/cmd/evm/runner.go
@@ -234,13 +234,13 @@ Gas used: %d
`, execTime, mem.HeapObjects, mem.Alloc, mem.TotalAlloc, mem.NumGC, initialGas-leftOverGas)
}
if tracer != nil {
- tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime)
+ tracer.CaptureEnd(ret, initialGas-leftOverGas, execTime, err)
} else {
fmt.Printf("0x%x\n", ret)
+ if err != nil {
+ fmt.Printf(" error: %v\n", err)
+ }
}
- if err != nil {
- fmt.Printf(" error: %v\n", err)
- }
return nil
}