diff --git a/node/router/messages/src/helpers/node_type.rs b/node/router/messages/src/helpers/node_type.rs index 42fbf9bf1e..528ee858ac 100644 --- a/node/router/messages/src/helpers/node_type.rs +++ b/node/router/messages/src/helpers/node_type.rs @@ -77,7 +77,7 @@ impl FromBytes for NodeType { 0 => Ok(Self::Client), 1 => Ok(Self::Prover), 2 => Ok(Self::Validator), - _ => Err(error("Invalid node type")), + x => Err(error(format!("Invalid node type. Expected either 0, 1 or 2. Got {x:?}"))), } } }