rust/hg-core/src/exit_codes.rs
changeset 49502 7c93e38a0bbd
parent 48846 006688e36e12
equal deleted inserted replaced
49501:9f14126cfc4c 49502:7c93e38a0bbd
     6 /// Generic abort
     6 /// Generic abort
     7 pub const ABORT: ExitCode = 255;
     7 pub const ABORT: ExitCode = 255;
     8 
     8 
     9 // Abort when there is a config related error
     9 // Abort when there is a config related error
    10 pub const CONFIG_ERROR_ABORT: ExitCode = 30;
    10 pub const CONFIG_ERROR_ABORT: ExitCode = 30;
       
    11 
       
    12 /// Indicates that the operation might work if retried in a different state.
       
    13 /// Examples: Unresolved merge conflicts, unfinished operations
       
    14 pub const STATE_ERROR: ExitCode = 20;
    11 
    15 
    12 // Abort when there is an error while parsing config
    16 // Abort when there is an error while parsing config
    13 pub const CONFIG_PARSE_ERROR_ABORT: ExitCode = 10;
    17 pub const CONFIG_PARSE_ERROR_ABORT: ExitCode = 10;
    14 
    18 
    15 /// Generic something completed but did not succeed
    19 /// Generic something completed but did not succeed