Skip to content

Commit

Permalink
eth: uncaptialize tracer preimage error message (ethereum#15792)
Browse files Browse the repository at this point in the history
* eth: uncaptialize tracer preimage error message

* eth: improve very important error message
  • Loading branch information
fjl authored and karalabe committed Jan 3, 2018
1 parent 72e70bc commit 85a1eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, v
return nil, fmt.Errorf("tracing failed: %v", err)
}
if err := core.WritePreimages(api.eth.ChainDb(), vmctx.BlockNumber.Uint64(), statedb.Preimages()); err != nil {
return nil, fmt.Errorf("Error writing preimage from trace: %v", err)
return nil, fmt.Errorf("can't write preimage: %v", err)
}
// Depending on the tracer type, format and return the output
switch tracer := tracer.(type) {
Expand Down

0 comments on commit 85a1eda

Please sign in to comment.