Sfoglia il codice sorgente

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

Add missing error check
Victor Vieux 11 anni fa
parent
commit
c838a4be29
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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