rust/rhg/src/error.rs
changeset 46503 d8730ff51d5a
parent 46499 eace48b4a786
child 46591 21d3b40b4c0e
--- a/rust/rhg/src/error.rs	Mon Feb 08 21:28:52 2021 +0100
+++ b/rust/rhg/src/error.rs	Mon Feb 08 21:37:30 2021 +0100
@@ -54,10 +54,10 @@
 impl From<RepoError> for CommandError {
     fn from(error: RepoError) -> Self {
         match error {
-            RepoError::NotFound { current_directory } => CommandError::Abort {
+            RepoError::NotFound { at } => CommandError::Abort {
                 message: format_bytes!(
                     b"no repository found in '{}' (.hg not found)!",
-                    get_bytes_from_path(current_directory)
+                    get_bytes_from_path(at)
                 ),
             },
             RepoError::ConfigParseError(error) => error.into(),