MCPcopy
hub / github.com/AlexxIT/go2rtc / Error

Function Error

internal/api/api.go:317–321  ·  view source on GitHub ↗
(w http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

315}
316
317func Error(w http.ResponseWriter, err error) {
318 log.Error().Err(err).Caller(1).Send()
319
320 http.Error(w, err.Error(), http.StatusInsufficientStorage)
321}

Callers 1

apiDiscoveryFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected