mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Fix typos. Improve language.
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
@ -60,7 +60,7 @@ func (c *Container) stat(containerMountPoint string, containerPath string) (*def
|
||||
}
|
||||
// Not all errors from secureStat map to ErrNotExist, so we
|
||||
// have to look into the error string. Turning it into an
|
||||
// ENOENT let's the API handlers return the correct status code
|
||||
// ENOENT lets the API handlers return the correct status code
|
||||
// which is crucial for the remote client.
|
||||
if os.IsNotExist(statErr) || strings.Contains(statErr.Error(), "o such file or directory") {
|
||||
statErr = copy.ErrENOENT
|
||||
|
Reference in New Issue
Block a user