mirror of https://github.com/docker/docs.git
Merge pull request #7162 from nathanleclaire/tar-with-options-err-check
Add missing error check
This commit is contained in:
commit
c838a4be29
|
@ -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…
Reference in New Issue