mirror of https://github.com/containers/podman.git
Merge pull request #10436 from rhatdan/errors
Improve OCI Runtime error
This commit is contained in:
commit
a6f0ac229f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue