internal/frontend: don't report errors from serveUnitPage
Don't invoke the errorreporting API for errors from serveUnitPage.
Otherwise we'll be doing it for every 404.
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
TryBot-Result: kokoro
@@ -75,7 +75,7 @@ type UnitPage struct {
// modules, documentation, readmes, licenses, and package_imports tables.
func (s *Server) serveUnitPage(ctx context.Context, w http.ResponseWriter, r *http.Request,
ds internal.DataSource, info *urlPathInfo) (err error) {
- defer derrors.WrapAndReport(&err, "serveUnitPage(ctx, w, r, ds, %v)", info)
+ defer derrors.Wrap(&err, "serveUnitPage(ctx, w, r, ds, %v)", info)
tab := r.FormValue("tab")
if tab == "" {
