Esempio n. 1
0
func renderError(w http.ResponseWriter, r *http.Request, err error) {
	req, resp := revel.NewRequest(r), revel.NewResponse(w)
	c := revel.NewController(req, resp)
	c.RenderError(err).Apply(req, resp)
}
Esempio n. 2
0
func renderError(w http.ResponseWriter, r *http.Request, err error) {
	revel.RenderError(revel.NewRequest(r), revel.NewResponse(w), err)
}