Skip to main content

impossible_exit_codes

Function impossible_exit_codes 

Source
pub fn impossible_exit_codes(codes: &[i32], unix: bool) -> Vec<i32>
Expand description

The codes in codes that a platform can never report, so can never match.

A tak.toml shared between platforms may list a Windows code next to Unix ones, such as [0, 1, -1073741819], so some impossible codes are only worth a warning. A list with no possible code would drop the subject at its first sample, which is a mistake to catch before it runs.