Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for formatError (1.4 sec)

  1. src/image/jpeg/huffman.go

    	for n > 0 {
    		if n < 17 {
    			return FormatError("DHT has wrong length")
    		}
    		if err := d.readFull(d.tmp[:17]); err != nil {
    			return err
    		}
    		tc := d.tmp[0] >> 4
    		if tc > maxTc {
    			return FormatError("bad Tc value")
    		}
    		th := d.tmp[0] & 0x0f
    		// The baseline th <= 1 restriction is specified in table B.5.
    		if th > maxTh || (d.baseline && th > 1) {
    			return FormatError("bad Th value")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/image/jpeg/scan.go

    func (d *decoder) processSOS(n int) error {
    	if d.nComp == 0 {
    		return FormatError("missing SOF marker")
    	}
    	if n < 6 || 4+2*d.nComp < n || n%2 != 0 {
    		return FormatError("SOS has wrong length")
    	}
    	if err := d.readFull(d.tmp[:n]); err != nil {
    		return err
    	}
    	nComp := int(d.tmp[0])
    	if n != 4+2*nComp {
    		return FormatError("SOS length inconsistent with number of components")
    	}
    	var scan [maxComponents]struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/debug/elf/file.go

    	}
    
    	if shoff < 0 {
    		return nil, &FormatError{0, "invalid shoff", shoff}
    	}
    	if phoff < 0 {
    		return nil, &FormatError{0, "invalid phoff", phoff}
    	}
    
    	if shoff == 0 && shnum != 0 {
    		return nil, &FormatError{0, "invalid ELF shnum for shoff=0", shnum}
    	}
    
    	if shnum > 0 && shstrndx >= shnum {
    		return nil, &FormatError{0, "invalid ELF shstrndx", shstrndx}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  4. cmd/admin-handlers-idp-config.go

    			// If we got an LDAP validation error, we need to send appropriate
    			// error message back to client (likely mc).
    			writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigLDAPValidation),
    				validationErr.FormatError(), r.URL)
    			return
    		}
    
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), err.Error(), r.URL)
    		return
    	}
    
    	// Update the actual server config on disk.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/apiclient/wait.go

    			if err != nil {
    				lastError = formatError(fmt.Sprintf("error: %v", err))
    				return false, err
    			}
    			resp, err := client.Do(req)
    			if err != nil {
    				lastError = formatError(fmt.Sprintf("error: %v", err))
    				return false, nil
    			}
    			defer func() {
    				_ = resp.Body.Close()
    			}()
    			if resp.StatusCode != http.StatusOK {
    				lastError = formatError(fmt.Sprintf("status code: %d", resp.StatusCode))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/report/HtmlDependencyVerificationReportRenderer.java

            contents.append("            <td>\n");
            currentArtifact.failures.forEach(this::formatError);
            contents.append("            </td>\n")
                .append("        </tr>\n");
        }
    
        private void formatError(RepositoryAwareVerificationFailure failure) {
            VerificationFailure vf = failure.getFailure();
            reportSignatureProblems(vf);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. src/image/png/writer.go

    	e.tmp[11] = 0 // default filter method
    	e.tmp[12] = 0 // non-interlaced
    	e.writeChunk(e.tmp[:13], "IHDR")
    }
    
    func (e *encoder) writePLTEAndTRNS(p color.Palette) {
    	if len(p) < 1 || len(p) > 256 {
    		e.err = FormatError("bad palette length: " + strconv.Itoa(len(p)))
    		return
    	}
    	last := -1
    	for i, c := range p {
    		c1 := color.NRGBAModel.Convert(c).(color.NRGBA)
    		e.tmp[3*i+0] = c1.R
    		e.tmp[3*i+1] = c1.G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. pkg/kube/client.go

    	if err != nil {
    		return nil, formatError(err)
    	}
    	resp, err := c.http.Do(req.WithContext(ctx))
    	if err != nil {
    		return nil, formatError(err)
    	}
    	defer closeQuietly(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("unexpected status code: %d", resp.StatusCode)
    	}
    	out, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return nil, formatError(err)
    	}
    
    	return out, nil
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Options.NumColors", Field, 2},
    		{"Options.Quantizer", Field, 2},
    	},
    	"image/jpeg": {
    		{"(FormatError).Error", Method, 0},
    		{"(UnsupportedError).Error", Method, 0},
    		{"Decode", Func, 0},
    		{"DecodeConfig", Func, 0},
    		{"DefaultQuality", Const, 0},
    		{"Encode", Func, 0},
    		{"FormatError", Type, 0},
    		{"Options", Type, 0},
    		{"Options.Quality", Field, 0},
    		{"Reader", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top