From 814182944a1e43cc6dd280c0566ba172c4205dd7 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 2 Sep 2024 20:23:24 +0200 Subject: [PATCH] fix: error log interpolation --- node/bft/events/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/bft/events/src/lib.rs b/node/bft/events/src/lib.rs index b106f03d46..fe4f290c3c 100644 --- a/node/bft/events/src/lib.rs +++ b/node/bft/events/src/lib.rs @@ -214,7 +214,7 @@ impl FromBytes for Event { 13 => Self::ValidatorsRequest(ValidatorsRequest::read_le(&mut reader)?), 14 => Self::ValidatorsResponse(ValidatorsResponse::read_le(&mut reader)?), 15 => Self::WorkerPing(WorkerPing::read_le(&mut reader)?), - 16.. => return Err(error("Unknown event ID {id}")), + 16.. => return Err(error(format!("Unknown event ID {id}"))), }; // Ensure that there are no "dangling" bytes.