Skip to content

Commit

Permalink
nit to retain the same error format
Browse files Browse the repository at this point in the history
  • Loading branch information
lzdl-cb committed Jan 29, 2021
1 parent a4ceacf commit 7c38fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c38fba

Please sign in to comment.