chiark / gitweb /
bundles: When we didn't find the file, lowercase the extensions
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 May 2021 17:06:41 +0000 (18:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 May 2021 17:11:25 +0000 (18:11 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bundles.rs

index 33c404d632d5b06978825c69b793f1cd4d8a0bd1..61fb7a96b65072d229b6c73b4de7597eec7ba586 100644 (file)
@@ -752,7 +752,7 @@ fn make_usvg(za: &mut IndexedZip, progress_count: &mut usize,
     }
     throw!(LE::BadBundle(format!(
       "missing image file, looked for one of {}/{}.{}", dir_inzip, item,
-      PictureFormat::iter().join(" ."),
+      PictureFormat::iter().map(|s| s.to_string().to_lowercase()).join(" ."),
     )));
   };