We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a277d commit 6248319Copy full SHA for 6248319
src/file_data.rs
@@ -24,7 +24,9 @@ impl FileDataSource {
24
where
25
T: for<'a> Deserialize<'a>,
26
{
27
- let f = File::open(path).map_err(|e| e.to_string())?;
+ let path = path.as_ref();
28
+ let f = File::open(path)
29
+ .map_err(|e| format!("error opening file '{}': {}", path.display(), e))?;
30
let f = zstd::Decoder::new(f).map_err(|e| e.to_string())?;
31
ciborium::from_reader(f).map_err(|e| e.to_string())
32
}
0 commit comments