diff -r c184b490da37 -r 97ac588b6d9e rust/hg-core/src/errors.rs --- a/rust/hg-core/src/errors.rs Fri Mar 05 13:28:49 2021 +0100 +++ b/rust/hg-core/src/errors.rs Mon Mar 08 08:35:43 2021 +0100 @@ -50,6 +50,8 @@ from: std::path::PathBuf, to: std::path::PathBuf, }, + /// `std::fs::canonicalize` + CanonicalizingPath(std::path::PathBuf), /// `std::env::current_dir` CurrentDir, /// `std::env::current_exe` @@ -128,6 +130,9 @@ from.display(), to.display() ), + IoErrorContext::CanonicalizingPath(path) => { + write!(f, "when canonicalizing {}", path.display()) + } IoErrorContext::CurrentDir => { write!(f, "error getting current working directory") }