# HG changeset patch # User Raphaël Gomès <rgomes@octobus.net> # Date 1722431487 -7200 # Wed Jul 31 15:11:27 2024 +0200 # Node ID c90e0f65896e8429f1a5182b2cb4e4f7f6745dfd # Parent bcd4962e0df9cd4c393ecba5289ce622864a1ae7 rust-revlog: generalize an error message This is used for more than the nodemap data. diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs --- 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(), )); };