diff rust/hg-core/src/dirstate/entry.rs @ 49373:f8ec7b16c98f stable

rust: add message to `DirstateV2ParseError` to give some context This is useful when debugging.
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 18 May 2022 09:50:39 +0100
parents 7241b3721ba5
children c7fb9b74e753
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs	Sun Jun 12 16:04:57 2022 +0100
+++ b/rust/hg-core/src/dirstate/entry.rs	Wed May 18 09:50:39 2022 +0100
@@ -83,7 +83,7 @@
                 second_ambiguous,
             })
         } else {
-            Err(DirstateV2ParseError)
+            Err(DirstateV2ParseError::new("when reading datetime"))
         }
     }