From 85a356856cf8bd026fc81e0da1ce2f5e7f1d451f Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 11 Dec 2013 23:47:31 +1100 Subject: [PATCH] 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 --- builder/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/main.go b/builder/main.go index 4759db4b..9b79c882 100644 --- a/builder/main.go +++ b/builder/main.go @@ -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),