From 23278e493d3529c4a6033f3db33913010991c15c Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Mon, 21 Mar 2022 15:37:00 -0400 Subject: [PATCH] Update internal/consensus/state.go Co-authored-by: M. J. Fromberger --- internal/consensus/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 1ec650ecd..abc0ae5f5 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -910,8 +910,8 @@ func (cs *State) receiveRoutine(ctx context.Context, maxSteps int) { err := cs.wal.WriteSync(mi) // NOTE: fsync if err != nil { panic(fmt.Errorf( - "failed to write %v msg to consensus WAL due to %q; check your file system and restart the node", - mi, err.Error(), + "failed to write %v msg to consensus WAL due to %w; check your file system and restart the node", + mi, err, )) }