diff options
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 9a310b0..d3ffd6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -217,7 +217,9 @@ fn write_nav(file: &mut File, in_path: &Path, raw_path: &Path) let name = d.file_name().unwrap().to_str().unwrap(); let rel_link = d.strip_prefix(abs_inpath) - .expect("could not strip inpath prefix"); + .expect(format!( + "could not strip the in_path prefix: {:?}", + d).as_str()); let link = Path::new("/").join(rel_link); let link = link.as_path().to_str().unwrap(); |