frontend: also log error
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
3089712084
commit
8d1d967d93
1 changed files with 1 additions and 0 deletions
|
@ -360,6 +360,7 @@ func (fe *frontendServer) setCurrencyHandler(w http.ResponseWriter, r *http.Requ
|
|||
}
|
||||
|
||||
func renderHTTPError(w http.ResponseWriter, err error, code int) {
|
||||
log.Printf("[error] %+v (code=%d)", err, code)
|
||||
w.WriteHeader(code)
|
||||
templates.ExecuteTemplate(w, "error", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
|
|
Loading…
Reference in a new issue