Skip to content

Commit bd79123

Browse files
authored
Merge pull request #415 from jrmuizel/better-errors
Make the Unknown property error more useful
2 parents 5110a08 + 119d10e commit bd79123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etw-reader/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl<'a> Parser<'a> {
234234
.properties
235235
.name_to_indx
236236
.get(name)
237-
.ok_or_else(|| ParserError::PropertyError("Unknown property".to_owned()))?;
237+
.ok_or_else(|| ParserError::PropertyError(format!("Unknown property: {}", name)))?;
238238
if indx < self.cache.len() {
239239
return Ok(indx);
240240
}

0 commit comments

Comments
 (0)