Skip to main content

exit_code_for

Function exit_code_for 

Source
pub fn exit_code_for(err: &TixError) -> ExitCode
Expand description

Map a domain error to the frozen exit-code table.

Selection ambiguity shares exit 2 with target-not-found, per the contract’s exit-code table (“2 target-not-found or selection-ambiguous”); the ambiguity marker is the commands::AMBIGUITY_PREFIX message prefix.