Skip to content

Commit

Permalink
Merge pull request containers#10436 from rhatdan/errors
Browse files Browse the repository at this point in the history
Improve OCI Runtime error
  • Loading branch information
openshift-merge-robot authored May 24, 2021
2 parents 4d6b66a + 4c095aa commit a6f0ac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libpod/define/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ var (

// ErrOCIRuntimeNotFound indicates the OCI runtime attempted to invoke a command
// that was not found
ErrOCIRuntimeNotFound = errors.New("OCI not found")
ErrOCIRuntimeNotFound = errors.New("OCI runtime attempted to invoke a command that was not found")

// ErrOCIRuntimeUnavailable indicates that the OCI runtime associated to a container
// could not be found in the configuration
Expand Down
2 changes: 1 addition & 1 deletion test/system/030-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ load helpers
# ...but check the configured runtime engine, and switch to crun as needed
run_podman info --format '{{ .Host.OCIRuntime.Path }}'
if expr "$output" : ".*/crun"; then
err_no_such_cmd="Error: executable file.* not found in \$PATH: No such file or directory: OCI not found"
err_no_such_cmd="Error: executable file.* not found in \$PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found"
err_no_exec_dir="Error: open executable: Operation not permitted: OCI permission denied"
fi

Expand Down

0 comments on commit a6f0ac2

Please sign in to comment.