diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-01-03 16:53:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-03 16:53:09 +0800 |
commit | 85a1eda59e44a32b6c8267889efedca33d3e703b (patch) | |
tree | c13641ebc663f2beb1e3b2477f751e5fa4c67f0a /eth | |
parent | 72e70bcec2e288e2f5d375290d194fd5832842e2 (diff) | |
download | dexon-85a1eda59e44a32b6c8267889efedca33d3e703b.tar.gz dexon-85a1eda59e44a32b6c8267889efedca33d3e703b.tar.zst dexon-85a1eda59e44a32b6c8267889efedca33d3e703b.zip |
eth: uncaptialize tracer preimage error message (#15792)
* eth: uncaptialize tracer preimage error message
* eth: improve very important error message
Diffstat (limited to 'eth')
-rw-r--r-- | eth/api_tracer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/api_tracer.go b/eth/api_tracer.go index 8ad664e06..26e47dcb6 100644 --- a/eth/api_tracer.go +++ b/eth/api_tracer.go @@ -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) { |