- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeErrorResponseJSON (0.19 sec)
-
cmd/admin-handlers.go
if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } content, err := downloadReleaseURL(u, updateTimeout, mode) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } sha256Sum, lrTime, releaseInfo, err := parseReleaseData(content) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
Registered: 2024-06-16 00:44 - Last Modified: 2024-05-24 23:05 - 98K bytes - Viewed (0) -
cmd/metrics-v2.go
if ok { tc.FuncName = funcName tc.ResponseRecorder.LogErrBody = true } mfs, err := gatherers.Gather() if err != nil && len(mfs) == 0 { writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL) return } contentType := expfmt.Negotiate(r.Header) w.Header().Set("Content-Type", string(contentType))
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-13 22:26 - 131.9K bytes - Viewed (0)