Merge pull request #1053 from justyntemme/patch-3

Change error message for unreadable files
This commit is contained in:
Sebastiaan van Stijn 2018-05-22 00:12:46 +02:00 committed by GitHub
commit 9a89c32e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}