Skip to content

Commit

Permalink
Make the Unknown property error more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Nov 14, 2024
1 parent 5110a08 commit 119d10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etw-reader/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl<'a> Parser<'a> {
.properties
.name_to_indx
.get(name)
.ok_or_else(|| ParserError::PropertyError("Unknown property".to_owned()))?;
.ok_or_else(|| ParserError::PropertyError(format!("Unknown property: {}", name)))?;
if indx < self.cache.len() {
return Ok(indx);
}
Expand Down

0 comments on commit 119d10e

Please sign in to comment.