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

Unified Diff: milo/appengine/frontend/templates/buildbot/pages/error.html

Issue 2606813002: Add login url to 401 messages (Closed)
Patch Set: review Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/frontend/templates/buildbot/pages/error.html
diff --git a/milo/appengine/frontend/templates/buildbot/pages/error.html b/milo/appengine/frontend/templates/buildbot/pages/error.html
index 7ffb00c7dccadf9528866a6b7a09503a44f0a34d..41782028c468a13dee6e3f19f9d48a9074f26aba 100644
--- a/milo/appengine/frontend/templates/buildbot/pages/error.html
+++ b/milo/appengine/frontend/templates/buildbot/pages/error.html
@@ -4,7 +4,9 @@
{{define "body"}}
<h1>Error: {{.Code}}</h1>
-{{ if .Message }}
+{{ if eq .Code 401 }}
+ <div>You are not authenticated, please try <a href="{{.LoginURL}}">logging in</a></div>
+{{ else if .Message }}
<div>{{.Message}}</div>
{{ end }}
<div>Request ID: {{.RequestID}}</div>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698