view rust/rhg/src/exitcode.rs @ 45367:53af26aa5951

rhg: handle broken pipe error for stderr Differential Revision: https://phab.mercurial-scm.org/D8871
author Antoine Cezar <antoine.cezar@octobus.net>
date Fri, 24 Jul 2020 10:34:04 +0200
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;