changeset 46443 | 43d63979a75e |
parent 46438 | 39e9407820ac |
child 46462 | d03b0601e0eb |
--- a/rust/hg-core/src/errors.rs Wed Jan 27 14:59:09 2021 +0100 +++ b/rust/hg-core/src/errors.rs Wed Jan 27 14:45:25 2021 +0100 @@ -35,6 +35,9 @@ impl HgError { pub fn corrupted(explanation: impl Into<String>) -> Self { + // TODO: capture a backtrace here and keep it in the error value + // to aid debugging? + // https://doc.rust-lang.org/std/backtrace/struct.Backtrace.html HgError::CorruptedRepository(explanation.into()) } }