MCPcopy
hub / github.com/livekit/livekit / HandleError

Function HandleError

pkg/service/utils.go:83–86  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, status int, err error, keysAndValues ...any)

Source from the content-addressed store, hash-verified

81}
82
83func HandleError(w http.ResponseWriter, r *http.Request, status int, err error, keysAndValues ...any) {
84 handleError(w, r, status, err, keysAndValues...)
85 _, _ = w.Write([]byte(err.Error()))
86}
87
88func HandleErrorJson(w http.ResponseWriter, r *http.Request, status int, err error, keysAndValues ...any) {
89 handleError(w, r, status, err, keysAndValues...)

Callers 5

ServeHTTPMethod · 0.85
UpgradeMethod · 0.85
v0ValidateMethod · 0.85
v1ValidateMethod · 0.85
serveMethod · 0.85

Calls 2

handleErrorFunction · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected