diff --git a/consensus/wal.go b/consensus/wal.go index 7ae36eae5..1abf97293 100644 --- a/consensus/wal.go +++ b/consensus/wal.go @@ -282,7 +282,7 @@ func (dec *WALDecoder) Decode() (*TimedWALMessage, error) { length := binary.BigEndian.Uint32(b) if length > maxMsgSizeBytes { - return nil, DataCorruptionError{fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes)} + return nil, fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes) } data := make([]byte, length)