Commit 85a1eda5 authored by Felix Lange's avatar Felix Lange Committed by Péter Szilágyi

eth: uncaptialize tracer preimage error message (#15792)

* eth: uncaptialize tracer preimage error message

* eth: improve very important error message
parent 72e70bce
...@@ -674,7 +674,7 @@ func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, v ...@@ -674,7 +674,7 @@ func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, v
return nil, fmt.Errorf("tracing failed: %v", err) return nil, fmt.Errorf("tracing failed: %v", err)
} }
if err := core.WritePreimages(api.eth.ChainDb(), vmctx.BlockNumber.Uint64(), statedb.Preimages()); err != nil { 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 // Depending on the tracer type, format and return the output
switch tracer := tracer.(type) { switch tracer := tracer.(type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment