mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7162 from nathanleclaire/tar-with-options-err-check
Add missing error check
This commit is contained in:
commit
c838a4be29
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ func (cli *DockerCli) CmdBuild(args ...string) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
context, err = archive.TarWithOptions(root, options)
|
context, err = archive.TarWithOptions(root, options)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var body io.Reader
|
var body io.Reader
|
||||||
// Setup an upload progress bar
|
// Setup an upload progress bar
|
||||||
|
|
Loading…
Add table
Reference in a new issue