From 6ba20a4ba4893aff4b643ed27c789e341ca643ef Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Mon, 2 Dec 2019 20:30:08 -0800 Subject: [PATCH] Fix a nil dereference (copy-and-paste glitch) --- core/rawdb/accessors_chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index 37c3919f3..cd62c58c1 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -428,7 +428,7 @@ func ReadShardState( if err2 != nil { return nil, ctxerror.New("cannot decode sharding state", "epoch", epoch, - ).WithCause(err) + ).WithCause(err2) } return ss, nil }