From c88aca8a2ab578931004bbd31a0be020e0d219b6 Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Fri, 12 Jul 2024 17:57:52 -0700 Subject: [PATCH] include zipfile name --- src/core/src/storage.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/src/storage.rs b/src/core/src/storage.rs index cf9255fc7d..48f2855b0f 100644 --- a/src/core/src/storage.rs +++ b/src/core/src/storage.rs @@ -368,9 +368,10 @@ impl Storage for ZipStorage { impl ZipStorage { pub fn from_file>(location: P) -> Result { + let display_name = location.as_ref().to_path_buf().into_os_string().into_string().unwrap(); let zip_file = match File::open(location.as_ref()) { Ok(zip_file) => zip_file, - Err(_) => panic!("cannot open zip file storage containing sketches."), + Err(_) => panic!("cannot open zip file storage '{display_name}' containing sketches."), }; let mapping = unsafe { memmap2::Mmap::map(&zip_file)? };