go.tools/dashboard/builder: do not fatal on subrepo fetch errors

When fetching repos it is not uncommon for a 500 or 503 to be returned
from code.google.com. When this happens, log the error and continue so
that we try again later, rather than treating this as fatal.

R=adg, dvyukov
CC=golang-dev
https://golang.org/cl/38720044
This commit is contained in:
Joel Sing 2013-12-11 23:47:31 +11:00
Родитель 8dce77a398
Коммит 85a356856c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -492,7 +492,8 @@ func commitWatcher(goroot *Repo) {
for _, pkg := range dashboardPackages("subrepo") {
pkgmaster, err := vcs.RepoRootForImportPath(pkg, *verbose)
if err != nil {
log.Fatalf("Error finding subrepo (%s): %s", pkg, err)
log.Printf("Error finding subrepo (%s): %s", pkg, err)
continue
}
pkgroot := &Repo{
Path: filepath.Join(*buildroot, pkg),