Skip to content
Snippets Groups Projects
Commit ccf5c440 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

rust-cpython: don't swallow the dirstate error message

In case we do get a dirstate error, we want to get the full error message and
not just an opaque `Dirstate error`.
parent f808fa11
No related branches found
No related tags found
2 merge requests!854Merge stable into default,!852Dirstate-v2: catch corruption before writing it to disk
......@@ -270,5 +270,5 @@
let tuple = (packed, tree_metadata, append);
Ok(tuple.to_py_object(py).into_object())
},
Err(_) => Err(PyErr::new::<exc::OSError, _>(
Err(e) => Err(PyErr::new::<exc::OSError, _>(
py,
......@@ -274,5 +274,5 @@
py,
"Dirstate error".to_string(),
e.to_string(),
)),
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment