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)? };