Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/error.rs @ 47414:7954ee2d7cf7
rhg: propogate error coming from HgError::Abort to CommandError
Differential Revision: https://phab.mercurial-scm.org/D10839
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 07 Jun 2021 17:29:32 +0530 |
parents | 6e49769b7f97 |
children | ff97e793ed36 |
line wrap: on
line diff
--- a/rust/rhg/src/error.rs Mon Jun 07 17:27:49 2021 +0530 +++ b/rust/rhg/src/error.rs Mon Jun 07 17:29:32 2021 +0530 @@ -69,6 +69,12 @@ HgError::UnsupportedFeature(message) => { CommandError::unsupported(message) } + HgError::Abort { + message, + detailed_exit_code, + } => { + CommandError::abort_with_exit_code(message, detailed_exit_code) + } _ => CommandError::abort(error.to_string()), } }