Searched refs:err (Results 1 – 2 of 2) sorted by relevance
384 let mut err: Option<ExecuteErrorType> = None; in execute() localVariable467 err = Some(ExecuteErrorType::FileOpenFailed( in execute()481 if err.is_none() { in execute()483 err = Some(err_type); in execute()500 std::process::exit(if err.is_none() { 0 } else { 1 }); in execute()509 err = match libc::waitpid(child_fd, &mut status, 0) { in execute()517 err = Some(ExecuteErrorType::ExitWithCode(status)); in execute()520 err = Some(ExecuteErrorType::ProcessTerminated); in execute()528 err = Some(ExecuteErrorType::ExecuteFailed) in execute()555 Err(e) => err = Some(e), in execute()[all …]
109 let mut err: Option<ExecuteErrorType> = None; in shell_cmd_exec() localVariable125 err = Some(ExecuteErrorType::ExitWithCode(exit_code)); in shell_cmd_exec()128 None => err = Some(ExecuteErrorType::ProcessTerminated), in shell_cmd_exec()130 Err(_) => err = Some(ExecuteErrorType::ExecuteFailed), in shell_cmd_exec()139 return if let Some(err) = err { in shell_cmd_exec()140 Err(err) in shell_cmd_exec()