summary refs log tree commit diff stats
path: root/src/new/chapter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/new/chapter.rs')
-rw-r--r--src/new/chapter.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/new/chapter.rs b/src/new/chapter.rs
index fcc075d..7628db6 100644
--- a/src/new/chapter.rs
+++ b/src/new/chapter.rs
@@ -113,7 +113,12 @@ fn get_last_chapter_name(project_root: &Path) -> anyhow::Result<Option<ChapterNa
     let number: u32 = raw_components.0.parse().expect("Will be a number");
 
     // The name is already mangled
-    assert!(MangledName::check_mangled(raw_components.1));
+    assert!(
+        MangledName::check_mangled(raw_components.1),
+        "'{}' is not yet mangled?! It should be: '{}'",
+        raw_components.1,
+        MangledName::new(raw_components.1)
+    );
     let name: MangledName = MangledName::from_str_unsafe(raw_components.1);
 
     Ok(Some(ChapterName::from_components(name, number)))