errorPage returns an HTML error page, inserting error details into the error.html template.
(w http.ResponseWriter, err error)
| 135 | |
| 136 | // errorPage returns an HTML error page, inserting error details into the error.html template. |
| 137 | func errorPage(w http.ResponseWriter, err error) { |
| 138 | p := &ErrorPage{Body: []byte(err.Error())} |
| 139 | t, _ := template.ParseFiles("./templates/error.html") |
| 140 | t.Execute(w, p) |
| 141 | } |
| 142 | |
| 143 | type CallbackHandler struct { |
| 144 | ch chan *oauth2.Token |
no outgoing calls