Merge pull request #2037 from c3d/issue/2036-is-not-exist

agent: Make wording of error message match CRI-O test suite
This commit is contained in:
GabyCT
2021-10-29 17:25:06 -05:00
committed by GitHub

View File

@@ -654,7 +654,7 @@ fn do_init_child(cwfd: RawFd) -> Result<()> {
let exec_file = Path::new(&args[0]);
log_child!(cfd_log, "process command: {:?}", &args);
if !exec_file.exists() {
find_file(exec_file).ok_or_else(|| anyhow!("the file {} is not exist", &args[0]))?;
find_file(exec_file).ok_or_else(|| anyhow!("the file {} was not found", &args[0]))?;
}
// notify parent that the child's ready to start