From a1c5f268e5465e0b3cdb4e2a47c0ade3de7988c0 Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Tue, 22 Jul 2014 10:41:58 -0700 Subject: [PATCH] Add missing error check Docker-DCO-1.1-Signed-off-by: Nathan LeClaire (github: nathanleclaire) --- api/client/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/client/commands.go b/api/client/commands.go index e057a35b4e..056bd27bc3 100644 --- a/api/client/commands.go +++ b/api/client/commands.go @@ -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