Skip to content

Commit

Permalink
Merge pull request #153 from nalind/make-not-exist-error
Browse files Browse the repository at this point in the history
archiveFromContainer(): return possibly-wrapped os.IsNotError
  • Loading branch information
rhatdan committed Mar 17, 2020
2 parents 5c94679 + 0351055 commit edcddd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerclient/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func archiveFromContainer(in io.Reader, src, dst string, excludes []string, chec
r, err := transformArchive(in, false, mapper.Filter)
rc := readCloser{Reader: r, Closer: newCloser(func() error {
if !mapper.foundItems {
return fmt.Errorf("%v: %s", os.ErrNotExist, src)
return makeNotExistError(src)
}
return nil
})}
Expand Down

0 comments on commit edcddd8

Please sign in to comment.