Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for setError (0.15 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/parse.go

    func (s *scanner) toLower(start, end int) {
    	for i := start; i < end; i++ {
    		c := s.b[i]
    		if 'A' <= c && c <= 'Z' {
    			s.b[i] += 'a' - 'A'
    		}
    	}
    }
    
    func (s *scanner) setError(e error) {
    	if s.err == nil || (e == ErrSyntax && s.err != ErrSyntax) {
    		s.err = e
    	}
    }
    
    // resizeRange shrinks or grows the array at position oldStart such that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    func NewFixedBuilder(buffer []byte) *Builder {
    	return &Builder{
    		result:    buffer,
    		fixedSize: true,
    	}
    }
    
    // SetError sets the value to be returned as the error from Bytes. Writes
    // performed after calling SetError are ignored.
    func (b *Builder) SetError(err error) {
    	b.err = err
    }
    
    // Bytes returns the bytes written by the builder or an error if one has
    // occurred during building.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. src/crypto/tls/ticket.go

    		for _, chain := range s.verifiedChains {
    			b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    				// We elide the first certificate because it's always the leaf.
    				if len(chain) == 0 {
    					b.SetError(errors.New("tls: internal error: empty verified chain"))
    					return
    				}
    				for _, cert := range chain[1:] {
    					b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    						b.AddBytes(cert.Raw)
    					})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/ecdsa.go

    // a big-endian byte slice with zero or more leading zeroes.
    func addASN1IntBytes(b *cryptobyte.Builder, bytes []byte) {
    	for len(bytes) > 0 && bytes[0] == 0 {
    		bytes = bytes[1:]
    	}
    	if len(bytes) == 0 {
    		b.SetError(errors.New("invalid integer"))
    		return
    	}
    	b.AddASN1(asn1.INTEGER, func(c *cryptobyte.Builder) {
    		if bytes[0]&0x80 != 0 {
    			c.AddUint8(0)
    		}
    		c.AddBytes(bytes)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. cmd/notification.go

    	reqInfo := (&logger.ReqInfo{}).AppendTags("remotePeer", addr)
    	ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    	peersLogOnceIf(ctx, err, "add-node-err-"+addr)
    	nodeInfo.SetAddr(addr)
    	nodeInfo.SetError(err.Error())
    }
    
    // GetSysErrors - Memory information
    func (sys *NotificationSys) GetSysErrors(ctx context.Context) []madmin.SysErrors {
    	reply := make([]madmin.SysErrors, len(sys.peerClients))
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  6. cmd/perf-tests.go

    				mu.Unlock()
    			}
    		}(i)
    	}
    	wg.Wait()
    
    	// We already saw write failures, no need to proceed into read's
    	if retError != "" {
    		return SpeedTestResult{
    			Uploads:     totalBytesWritten,
    			Downloads:   totalBytesRead,
    			UploadTimes: uploadTimes,
    			Error:       retError,
    		}, nil
    	}
    
    	downloadsCtx, downloadsCancel := context.WithTimeout(ctx, opts.duration)
    	defer downloadsCancel()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/ztunnelserver.go

    	}
    
    	fd := int(netns.Fd())
    	resp, err := latestConn.send(ctx, data, &fd)
    	if err != nil {
    		return err
    	}
    
    	if resp.GetAck().GetError() != "" {
    		log.Errorf("add-workload: got ack error: %s", resp.GetAck().GetError())
    		return fmt.Errorf("got ack error: %s", resp.GetAck().GetError())
    	}
    	return nil
    }
    
    // TODO ctx is unused here
    // nolint: unparam
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 22:07:03 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

        public boolean hasErrorOutput(String expectedOutput) {
            return getError().contains(expectedOutput);
        }
    
        @Override
        public ExecutionResult assertHasErrorOutput(String expectedOutput) {
            return assertContentContains(errorContent.withNormalizedEol(), expectedOutput, "Error output");
        }
    
        @Override
        public String getError() {
            return error.withNormalizedEol();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            String key = getMetadataKey(repository, file);
    
            return readLastUpdated(touchfile, key);
        }
    
        public String getError(Artifact artifact, ArtifactRepository repository) {
            File touchFile = getTouchfile(artifact);
            return getError(touchFile, getRepositoryKey(repository));
        }
    
        public void touch(Artifact artifact, ArtifactRepository repository, String error) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ResultAssertion.java

        }
    
        @Override
        public void execute(ExecutionResult executionResult) {
            String normalizedOutput = executionResult.getNormalizedOutput();
            String error = executionResult.getError();
            boolean executionFailure = executionResult instanceof ExecutionFailure;
    
            // for tests using rich console standard out and error are combined in output of execution result
            if (executionFailure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top