Commit c26b504b authored by Evan Shaw's avatar Evan Shaw Committed by Shenghou Ma

cmd/go: add missing error check

R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5874055
parent 7b8f8bf5
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment