diff --git a/src/lib.rs b/src/lib.rs index f3a7efb..f5141d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -933,7 +933,8 @@ fn signal_to_payload(mut w: impl Write, signal: &Signal, msg: &Message) -> Resul } writeln!( &mut w, - " .ok_or(CanError::ParameterOutOfRange {{ message_id: Self::MESSAGE_ID }})?;", + " .ok_or(CanError::ParameterOutOfRange {{ message_id: {}::MESSAGE_ID }})?;", + type_name(msg.message_name()) )?; writeln!( &mut w,