Browse Source

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

Add missing error check
Victor Vieux 11 năm trước cách đây
mục cha
commit
c838a4be29
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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