about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2022-02-03 21:49:45 +0100
committerEmile <git@emile.space>2022-02-03 21:49:45 +0100
commit3f9823c61021ec53fb0af257c4677dfe1736e00d (patch)
tree4a3c7d70251ff6ddb5d260be12738de7c524fdb4
parenta299442fa50d2571f426b396a3d23e0b3f24da7b (diff)
more info if in_path prefix could not be stripped
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6f24c4f..9a310b0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -31,7 +31,8 @@ fn main() -> std::io::Result<()> {
         println!("[i] {}", path.as_os_str().to_str().unwrap());
 
         let stripped_path = path.strip_prefix(&in_path)
-            .expect("could not strip the in_path prefix");
+            .expect(format!(
+                "could not strip the in_path prefix: {:?}", in_path).as_str());
 
         // copy images and other files to the output folder
         if path.is_file() {