pkg/api: Check errors (#19657)
* pkg/api: Check errors * pkg/api: Remove unused function HashEmail
This commit is contained in:
+3
-1
@@ -55,7 +55,9 @@ func (r *NormalResponse) WriteTo(ctx *m.ReqContext) {
|
||||
header[k] = v
|
||||
}
|
||||
ctx.Resp.WriteHeader(r.status)
|
||||
ctx.Resp.Write(r.body)
|
||||
if _, err := ctx.Resp.Write(r.body); err != nil {
|
||||
ctx.Logger.Error("Error writing to response", "err", err)
|
||||
}
|
||||
}
|
||||
|
||||
func (r *NormalResponse) Cache(ttl string) *NormalResponse {
|
||||
|
||||
Reference in New Issue
Block a user