Update cmd/evm/runner.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
jwasinger 2024-11-21 20:44:29 +07:00 committed by GitHub
parent dc78fceb7a
commit 39a39ce0da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -301,10 +301,9 @@ func runCmd(ctx *cli.Context) error {
}
bench := ctx.Bool(BenchFlag.Name)
output, stats, execErr, benchErr := timedExec(bench, execFunc)
if benchErr != nil {
fmt.Printf("benchmarking execution failed: %v\n", benchErr)
return benchErr
output, stats, execErr, err := timedExec(bench, execFunc)
if err != nil {
return fmt.Errorf("benchmarking failed: %v\n", err)
}
if ctx.Bool(DumpFlag.Name) {