pub(crate) fn validate_exit_code(code: i32) -> Result<(), CargoMakeError> {
    if code == -1 {
        Err(CargoMakeError::ExitCodeValidation)
    } else if code != 0 {
        Err(CargoMakeError::ExitCodeError(code))
    } else {
        Ok(())
    }
}
Validates the exit code and if not 0 or unable to validate it, err
src/lib/command.rs