diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs
index bcd4962e0df9cd4c393ecba5289ce622864a1ae7_cnVzdC9oZy1jcHl0aG9uL3NyYy9yZXZsb2cucnM=..c90e0f65896e8429f1a5182b2cb4e4f7f6745dfd_cnVzdC9oZy1jcHl0aG9uL3NyYy9yZXZsb2cucnM= 100644
--- a/rust/hg-cpython/src/revlog.rs
+++ b/rust/hg-cpython/src/revlog.rs
@@ -137,8 +137,7 @@
     } else {
         return Err(PyErr::new::<ValueError, _>(
             py,
-            "Nodemap data buffer has an invalid memory representation"
-                .to_string(),
+            "buffer has an invalid memory representation".to_string(),
         ));
     };