Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeErrorResponseJSON (0.19 sec)

  1. 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)
  2. 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)
Back to top