Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/error.rs @ 46503:d8730ff51d5a
rhg: Add support for -R and --repository command-line arguments
Differential Revision: https://phab.mercurial-scm.org/D9970
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 08 Feb 2021 21:37:30 +0100 |
parents | eace48b4a786 |
children | 21d3b40b4c0e |
line wrap: on
line diff
--- 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(),