This instance will be upgraded to Heptapod 0.27.1 on 2021-12-08 at 22:00 UTC+1 (a few minutes of down time)

Commit 2b41d8b1 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

rhg: propogate error coming from HgError::Abort to CommandError

Differential Revision: https://phab.mercurial-scm.org/D10839
parent c0883303004d
Pipeline #22923 passed with stages
in 32 minutes and 36 seconds
......@@ -69,6 +69,12 @@ impl From<HgError> for CommandError {
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()),
}
}
......
......@@ -220,7 +220,6 @@ Testing --config:
$ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo
quuxfoo
TODO: add rhg support for detailed exit codes
#if no-rhg
$ hg --cwd c --config '' tip -q
abort: malformed --config option: '' (use --config section.name=value)
[10]
......@@ -236,7 +235,6 @@ TODO: add rhg support for detailed exit codes
$ hg --cwd c --config .b= tip -q
abort: malformed --config option: '.b=' (use --config section.name=value)
[10]
#endif
Testing --debug:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment