Mercurial > public > mercurial-scm > hg
view rust/rhg/src/exitcode.rs @ 46436:252d1bdba33d
rhg: replace `map_*_error` functions with `From` impls
Differential Revision: https://phab.mercurial-scm.org/D9876
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 26 Jan 2021 20:31:26 +0100 |
parents | 513b3ef277a3 |
children | ca3f73cc3cf4 |
line wrap: on
line source
pub type ExitCode = i32; /// Successful exit pub const OK: ExitCode = 0; /// Generic abort pub const ABORT: ExitCode = 255; /// Command not implemented by rhg pub const UNIMPLEMENTED_COMMAND: ExitCode = 252;