From 6254720f53a4c1bb3ae416363b2a8bd472455e8b Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 5 Jun 2021 20:18:27 +0800 Subject: Add unreachable context Better error for #123--- helix-core/src/movement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core/src') diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index d6745fff..297911ae 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -199,7 +199,7 @@ fn categorize(ch: char) -> Category { } else if ch.is_ascii_punctuation() { Category::Punctuation } else { - unreachable!() + unreachable!("unknown '{}' character category", ch) } } -- cgit v1.2.3-70-g09d2