X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fmsgs.rs;h=fc942ab5a2022dbe30eb303c3d4279362c81d881;hb=68be3c03531667a1ecae7c67664e0ef71ea98a61;hp=f2f9fcbd131002b8b6bb8d4b4cca7b67ca6955e9;hpb=89475381bb599baabdc1dff1d821b038c1f8e4fe;p=rust-lightning diff --git a/src/ln/msgs.rs b/src/ln/msgs.rs index f2f9fcbd..fc942ab5 100644 --- a/src/ln/msgs.rs +++ b/src/ln/msgs.rs @@ -46,7 +46,7 @@ pub enum DecodeError { BadLengthDescriptor, /// Error from std::io Io(::std::io::Error), - /// Invalid value found when decoding + /// 1 or 0 is not found for boolean value InvalidValue, } pub trait MsgDecodable: Sized { @@ -525,7 +525,7 @@ impl Error for DecodeError { DecodeError::ExtraAddressesPerType => "More than one address of a single type", DecodeError::BadLengthDescriptor => "A length descriptor in the packet didn't describe the later data correctly", DecodeError::Io(ref e) => e.description(), - DecodeError::InvalidValue => "Invalid value in the bytes", + DecodeError::InvalidValue => "0 or 1 is not found for boolean", } } }