瀏覽代碼

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

Add missing error check
Victor Vieux 11 年之前
父節點
當前提交
c838a4be29
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      api/client/commands.go

+ 3 - 0
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