rhg: nicer error message
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Thu, 16 Feb 2023 14:43:46 +0000
changeset 50094 1cffc156f7cd
parent 50093 ce60c8d4ac87
child 50095 362fe34702d5
rhg: nicer error message
rust/rhg/src/commands/status.rs
--- a/rust/rhg/src/commands/status.rs	Tue Feb 14 12:40:59 2023 -0500
+++ b/rust/rhg/src/commands/status.rs	Thu Feb 16 14:43:46 2023 +0000
@@ -574,8 +574,8 @@
     let file_node = entry.node_id()?;
     let filelog_entry = filelog.entry_for_node(file_node).map_err(|_| {
         HgError::corrupted(format!(
-            "filelog missing node {:?} from manifest",
-            file_node
+            "filelog {:?} missing node {:?} from manifest",
+            hg_path, file_node
         ))
     })?;
     if filelog_entry.file_data_len_not_equal_to(fs_len) {