From 04f8f062931fa5f94fa7b32aca0165d161771a09 Mon Sep 17 00:00:00 2001 From: yihuang Date: Wed, 28 Jun 2023 21:33:33 +0800 Subject: [PATCH] Update memiavl/multitree.go Co-authored-by: mmsqe Signed-off-by: yihuang --- memiavl/multitree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memiavl/multitree.go b/memiavl/multitree.go index 93b5638f28..938b671c2c 100644 --- a/memiavl/multitree.go +++ b/memiavl/multitree.go @@ -67,7 +67,7 @@ func NewEmptyMultiTree(initialVersion uint32, cacheSize int) *MultiTree { func LoadMultiTree(dir string, zeroCopy bool, cacheSize int) (*MultiTree, error) { metadata, err := readMetadata(dir) if err != nil { - return nil, fmt.Errorf("fail to read metadata: %w", err) + return nil, err } entries, err := os.ReadDir(dir)