Skip to content

Commit

Permalink
Merge pull request #253 from epage/fix
Browse files Browse the repository at this point in the history
fix(snap): Ensure we overwrite on non-existent file
  • Loading branch information
epage authored Feb 15, 2024
2 parents be0abc8 + 1ff138d commit 17669a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/snapbox/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl Data {
pub fn read_from(path: &std::path::Path, data_format: Option<DataFormat>) -> 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),
}
}

Expand Down

0 comments on commit 17669a9

Please sign in to comment.