mirror of https://github.com/golang/go.git
cmd/go: add missing error check
R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/5874055
This commit is contained in:
parent
7b8f8bf5b5
commit
c26b504b0d
|
|
@ -227,6 +227,9 @@ func downloadPackage(p *Package) error {
|
|||
if p.build.SrcRoot != "" {
|
||||
// Directory exists. Look for checkout along path to src.
|
||||
vcs, rootPath, err = vcsForDir(p)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
repo = "<local>" // should be unused; make distinctive
|
||||
} else {
|
||||
// Analyze the import path to determine the version control system,
|
||||
|
|
|
|||
Loading…
Reference in New Issue