From 2e7cceb08598a6b02492985479a4c05ce29c83de Mon Sep 17 00:00:00 2001 From: "luke.lin" Date: Thu, 28 Jan 2021 15:57:05 -0800 Subject: [PATCH] nit to retain the same error format --- reconciler/reconciler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reconciler/reconciler.go b/reconciler/reconciler.go index 7a22d6f4..a4ff5fb5 100644 --- a/reconciler/reconciler.go +++ b/reconciler/reconciler.go @@ -282,7 +282,7 @@ func (r *Reconciler) CompareBalance( // Head block should be set before we CompareBalance head, err := r.helper.CurrentBlock(ctx, dbTx) if err != nil { - return zeroString, "", 0, errors.Wrap(ErrGetCurrentBlockFailed, err.Error()) + return zeroString, "", 0, errors.Wrapf(ErrGetCurrentBlockFailed, "%v", err) } // Check if live block is < head (or wait)