Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1084)

Unified Diff: milo/appengine/frontend/frontpage.go

Issue 2801463002: Milo: Use custom config caching layer (Closed)
Patch Set: Working Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: milo/appengine/frontend/frontpage.go
diff --git a/milo/appengine/frontend/frontpage.go b/milo/appengine/frontend/frontpage.go
index 249e062dc4b3e1f30db415d60b7b2ca34c2f44d5..987d16f1722b648aebf598f107424121e7d22b6a 100644
--- a/milo/appengine/frontend/frontpage.go
+++ b/milo/appengine/frontend/frontpage.go
@@ -5,8 +5,6 @@
package frontend
import (
- "net/http"
-
"github.com/luci/luci-go/server/router"
"github.com/luci/luci-go/server/templates"
@@ -31,15 +29,12 @@ func frontpageHandler(c *router.Context) {
return err
}
})
- if err != nil {
- common.ErrorPage(c, http.StatusInternalServerError, err.Error())
- return
- }
fp.CIServices = append(fp.CIServices, *mBuildbucket)
fp.CIServices = append(fp.CIServices, *mBuildbot)
templates.MustRender(c.Context, c.Writer, "pages/frontpage.html", templates.Args{
"frontpage": fp,
+ "errors": err.Error(),
nodir 2017/04/04 23:12:08 this looks like one error, a string. Why it is cal
hinoka 2017/04/05 20:45:07 Done.
})
}

Powered by Google App Engine
This is Rietveld 408576698