mirror of https://github.com/docker/docs.git
Add missing error check
Docker-DCO-1.1-Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com> (github: nathanleclaire)
This commit is contained in:
parent
9dc82e6102
commit
a1c5f268e5
|
@ -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