From 1ff138d106baa02f116010a08e3975cab468fc74 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 15 Feb 2024 14:44:03 -0600 Subject: [PATCH] fix(snap): Ensure we overwrite on non-existent file --- crates/snapbox/src/data/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), } }