frontend: also log error
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
b2ca0868a5
commit
7db573230b
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