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:
Michael Crosby 2014-07-31 15:11:15 -07:00
parent 27cca4c70c
commit 8891e912b4
1 changed files with 2 additions and 1 deletions

View File

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