changeset 50146:1cffc156f7cd

rhg: nicer error message
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 16 Feb 2023 14:43:46 +0000
parents ce60c8d4ac87
children 362fe34702d5
files rust/rhg/src/commands/status.rs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {