Skip to content

Commit

Permalink
Merge pull request #415 from jrmuizel/better-errors
Browse files Browse the repository at this point in the history
Make the Unknown property error more useful
  • Loading branch information
mstange authored Nov 14, 2024
2 parents 5110a08 + 119d10e commit bd79123
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 bd79123

Please sign in to comment.