mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
triedb: use %w instead of %v to format error
Signed-off-by: tmelhao <tmelhao@gmail.com>
This commit is contained in:
parent
08f423a8e9
commit
f011f7ae86
1 changed files with 1 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ func (db *Database) Scheme() string {
|
||||||
// An error will be returned if the requested state is not available.
|
// An error will be returned if the requested state is not available.
|
||||||
func (db *Database) Reader(root common.Hash) (*reader, error) {
|
func (db *Database) Reader(root common.Hash) (*reader, error) {
|
||||||
if _, err := db.node(root); err != nil {
|
if _, err := db.node(root); err != nil {
|
||||||
return nil, fmt.Errorf("state %#x is not available, %v", root, err)
|
return nil, fmt.Errorf("state %#x is not available, %w", root, err)
|
||||||
}
|
}
|
||||||
return &reader{db: db}, nil
|
return &reader{db: db}, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue