Add missing error check

Docker-DCO-1.1-Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com> (github: nathanleclaire)
Upstream-commit: a1c5f268e5465e0b3cdb4e2a47c0ade3de7988c0
Component: engine
This commit is contained in:
Nathan LeClaire
2014-07-22 10:41:58 -07:00
parent bbc55c5d41
commit 951216bd40

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