Downgrade to a simple print instead of panic for netOP errs
TODO: pass logger and error handling fallback if resp is written
@@ -115,7 +115,8 @@ func (t *Template) ServeError(err error) http.Handler {
}
DefaultHTML.ServeError(errCode).ServeHTTP(rw, req)
} else if err != nil {
- panic(err)
+ // FIXME: at least log those errors (maybe netOP, brokenPipe etc)
+ println(err.Error())
}
})
}
