# HG changeset patch # User Raphaël Gomès # Date 1722431487 -7200 # Node ID c90e0f65896e8429f1a5182b2cb4e4f7f6745dfd # Parent bcd4962e0df9cd4c393ecba5289ce622864a1ae7 rust-revlog: generalize an error message This is used for more than the nodemap data. diff -r bcd4962e0df9 -r c90e0f65896e rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs Wed Jul 31 13:35:54 2024 +0200 +++ b/rust/hg-cpython/src/revlog.rs Wed Jul 31 15:11:27 2024 +0200 @@ -137,8 +137,7 @@ } else { return Err(PyErr::new::( py, - "Nodemap data buffer has an invalid memory representation" - .to_string(), + "buffer has an invalid memory representation".to_string(), )); };