Return error for utils.Matches in archive
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
This commit is contained in:
parent
27cca4c70c
commit
8891e912b4
1 changed files with 2 additions and 1 deletions
|
@ -352,8 +352,9 @@ func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error)
|
|||
skip, err := utils.Matches(relFilePath, options.Excludes)
|
||||
if err != nil {
|
||||
utils.Debugf("Error matching %s\n", relFilePath, err)
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
if skip {
|
||||
if f.IsDir() {
|
||||
return filepath.SkipDir
|
||||
|
|
Loading…
Add table
Reference in a new issue