소스 검색

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