internal/worker: report errors on more paths
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
TryBot-Result: kokoro
@@ -669,6 +669,7 @@ func (s *Server) serveError(w http.ResponseWriter, r *http.Request, err error) {
}
if serr.status == http.StatusInternalServerError {
log.Error(ctx, serr.err)
+ s.reportError(ctx, err, w, r)
} else {
log.Infof(ctx, "returning %d (%s) for error %v", serr.status, http.StatusText(serr.status), err)
}
