소스 검색

Add missing error check

Docker-DCO-1.1-Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com> (github: nathanleclaire)
Nathan LeClaire 11 년 전
부모
커밋
a1c5f268e5
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)
 		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