Merge pull request #7162 from nathanleclaire/tar-with-options-err-check

Add missing error check
This commit is contained in:
Victor Vieux 2014-07-22 11:37:21 -07:00
commit c838a4be29
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ func (cli *DockerCli) CmdBuild(args ...string) error {
}
}
context, err = archive.TarWithOptions(root, options)
if err != nil {
return err
}
}
var body io.Reader
// Setup an upload progress bar