Skip to main content

GUEST_PROGRAM_NOT_FOUND_EXIT

Constant GUEST_PROGRAM_NOT_FOUND_EXIT 

Source
pub const GUEST_PROGRAM_NOT_FOUND_EXIT: i32 = 127;
Expand description

The guest program could not be found at all: 127.

Exported for the same reason as HERMIT_INTERNAL_FAILURE_EXIT and with the same history one step behind it. GuestProgramFault::exit_code wrote 127 and 126 as bare literals, and tests/cli.rs had no way to name either, so a test meaning “not found” and a test meaning “hermit refused” were asserted with the same helper and the same number until the values diverged.

⚠️ THIS IS NOT A SUBDIVISION OF HERMIT’S OWN FAILURE, AND THAT IS THE WHOLE DISTINCTION. 125 says hermit broke; 127 and 126 say the guest program was unusable and hermit correctly declined to start it. A caller that cannot tell those apart cannot tell “fix my tooling” from “fix my command line”.