Skip to content

Commit

Permalink
Update log messages
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <[email protected]>
  • Loading branch information
adam-cattermole committed Aug 13, 2024
1 parent d044a3e commit e5a20de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Attribute for i64 {
fn parse(raw_attribute: Vec<u8>) -> Result<Self, String> {
if raw_attribute.len() != 8 {
return Err(format!(
"Int value expected to be 8 bytes, but got {}",
"parse: Int value expected to be 8 bytes, but got {}",
raw_attribute.len()
));
}
Expand All @@ -40,7 +40,7 @@ impl Attribute for u64 {
fn parse(raw_attribute: Vec<u8>) -> Result<Self, String> {
if raw_attribute.len() != 8 {
return Err(format!(
"UInt value expected to be 8 bytes, but got {}",
"parse: UInt value expected to be 8 bytes, but got {}",
raw_attribute.len()
));
}
Expand All @@ -56,7 +56,7 @@ impl Attribute for f64 {
fn parse(raw_attribute: Vec<u8>) -> Result<Self, String> {
if raw_attribute.len() != 8 {
return Err(format!(
"Float value expected to be 8 bytes, but got {}",
"parse: Float value expected to be 8 bytes, but got {}",
raw_attribute.len()
));
}
Expand All @@ -78,7 +78,7 @@ impl Attribute for bool {
fn parse(raw_attribute: Vec<u8>) -> Result<Self, String> {
if raw_attribute.len() != 1 {
return Err(format!(
"Bool value expected to be 1 byte, but got {}",
"parse: Bool value expected to be 1 byte, but got {}",
raw_attribute.len()
));
}
Expand Down

0 comments on commit e5a20de

Please sign in to comment.