Skip to content

Commit

Permalink
agent: Make wording of error message match CRI-O test suite
Browse files Browse the repository at this point in the history
The CRI-O integration test suite has two tests that fail because they search for
"not found" in the error message, but we emit "is not exist".

Change the error message to match the expectations of the test suite.

Fixes: kata-containers#2036

Reported-by: Julien Ropé <jrope@redhat.com>
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
  • Loading branch information
c3d committed Aug 4, 2021
1 parent b24ee4b commit 881b996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/rustjail/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,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
Expand Down

0 comments on commit 881b996

Please sign in to comment.