mirror of https://github.com/docker/cli.git
Change error message for unreadable files
Fix for https://github.com/docker/for-linux/issues/44 Signed-off-by: Justyn Temme <justyntemme@gmail.com>
This commit is contained in:
parent
ab1d49a313
commit
c2a35cfa1a
|
@ -47,7 +47,7 @@ func ValidateContextDirectory(srcPath string, excludes []string) error {
|
|||
return errors.Errorf("can't stat '%s'", filePath)
|
||||
}
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
return errors.Errorf("file ('%s') not found or excluded by .dockerignore", filePath)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue