diff --git a/crates/snapbox/src/data/mod.rs b/crates/snapbox/src/data/mod.rs index 2cfcad81..3631bfc2 100644 --- a/crates/snapbox/src/data/mod.rs +++ b/crates/snapbox/src/data/mod.rs @@ -153,7 +153,7 @@ impl Data { pub fn read_from(path: &std::path::Path, data_format: Option) -> Self { match Self::try_read_from(path, data_format) { Ok(data) => data, - Err(err) => Self::error(err), + Err(err) => Self::error(err).with_path(path), } }