mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Fix error reporting in CopyFileWithTar
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Upstream-commit: 57e12037ac8f8eb48cc05979c3030853d011dfea Component: engine
This commit is contained in:
@@ -1050,7 +1050,7 @@ func (archiver *Archiver) CopyFileWithTar(src, dst string) (err error) {
|
||||
return nil
|
||||
})
|
||||
defer func() {
|
||||
if er := <-errC; err != nil {
|
||||
if er := <-errC; err == nil && er != nil {
|
||||
err = er
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user