diff --git a/rust/hg-cpython/src/dirstate/dirstate_map.rs b/rust/hg-cpython/src/dirstate/dirstate_map.rs --- a/rust/hg-cpython/src/dirstate/dirstate_map.rs +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs @@ -270,9 +270,9 @@ py_class!(pub class DirstateMap |py| { let tuple = (packed, tree_metadata, append); Ok(tuple.to_py_object(py).into_object()) }, - Err(_) => Err(PyErr::new::( + Err(e) => Err(PyErr::new::( py, - "Dirstate error".to_string(), + e.to_string(), )), } }