Search Options

Results per page
Sort
Preferred Languages
Advance

Results 571 - 580 of 859 for err (0.01 sec)

  1. src/bufio/scan.go

    		// If we've run out of data but have an error, give the split function
    		// a chance to recover any remaining, possibly empty token.
    		if s.end > s.start || s.err != nil {
    			advance, token, err := s.split(s.buf[s.start:s.end], s.err != nil)
    			if err != nil {
    				if err == ErrFinalToken {
    					s.token = token
    					s.done = true
    					// When token is not nil, it means the scanning stops
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. internal/bucket/versioning/error.go

    // parsing.
    type Error struct {
    	err error
    }
    
    // Errorf - formats according to a format specifier and returns
    // the string as a value that satisfies error of type tagging.Error
    func Errorf(format string, a ...interface{}) error {
    	return Error{err: fmt.Errorf(format, a...)}
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.err }
    
    // Error 'error' compatible method.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/error.go

    // parsing.
    type Error struct {
    	err error
    }
    
    // Errorf - formats according to a format specifier and returns
    // the string as a value that satisfies error of type tagging.Error
    func Errorf(format string, a ...interface{}) error {
    	return Error{err: fmt.Errorf(format, a...)}
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.err }
    
    // Error 'error' compatible method.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  4. cmd/callhome.go

    			if !hasMore {
    				auditOptions := AuditLogOptions{Event: "callhome:diagnostics"}
    				// Received all data. Send to SUBNET and return
    				err := sendHealthInfo(ctx, healthInfo)
    				if err != nil {
    					internalLogIf(ctx, fmt.Errorf("Unable to perform callhome: %w", err))
    					auditOptions.Error = err.Error()
    				}
    				auditLogInternal(ctx, auditOptions)
    				return
    			}
    			healthInfo = hi
    		case <-healthCtx.Done():
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 17 16:53:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. internal/rest/client_test.go

    	tests := []struct {
    		name   string
    		err    error
    		target interface{}
    		want   bool
    	}{
    		{
    			name:   "url.Error",
    			err:    &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			target: &url.Error{},
    			want:   true,
    		},
    		{
    			name: "net.Error",
    			err:  &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			want: true,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. schema/relationship.go

    			primaryKeys: toColumns(field.TagSettings["REFERENCES"]),
    		}
    	)
    
    	cacheStore := schema.cacheStore
    
    	if relation.FieldSchema, err = getOrParse(fieldValue, cacheStore, schema.namer); err != nil {
    		schema.err = err
    		return nil
    	}
    
    	if hasPolymorphicRelation(field.TagSettings) {
    		schema.buildPolymorphicRelation(relation, field)
    	} else if many2many := field.TagSettings["MANY2MANY"]; many2many != "" {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. cmd/bitrot.go

    		// Read expected hash...
    		h.Reset()
    		n, err := io.ReadFull(r, hashBuf)
    		if err != nil {
    			// Read's failed for object with right size, file is corrupt.
    			return err
    		}
    		// Subtract hash length..
    		left -= int64(n)
    		if left < shardSize {
    			shardSize = left
    		}
    
    		read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp)
    		if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. internal/grid/grid.go

    			// Add more capacity (let append pick how much).
    			b = append(b, 0)[:len(b)]
    		}
    		n, err := r.Read(b[len(b):cap(b)])
    		b = b[:len(b)+n]
    		if err != nil {
    			if errors.Is(err, io.EOF) {
    				if want >= 0 && read+int64(n) != want {
    					return nil, io.ErrUnexpectedEOF
    				}
    				err = nil
    			}
    			return b, err
    		}
    		read += int64(n)
    		if want >= 0 && read == want {
    			// No need to read more...
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. cmd/signature-v2.go

    // if any while unescaping the values.
    func unescapeQueries(encodedQuery string) (unescapedQueries []string, err error) {
    	for _, query := range strings.Split(encodedQuery, "&") {
    		var unescapedQuery string
    		unescapedQuery, err = url.QueryUnescape(query)
    		if err != nil {
    			return nil, err
    		}
    		unescapedQueries = append(unescapedQueries, unescapedQuery)
    	}
    	return unescapedQueries, nil
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. cmd/streaming-signature-v4_test.go

    	}
    	for _, tt := range tests {
    		got, err := parseHexUint([]byte(tt.in))
    		if tt.wantErr != "" {
    			if err != nil && !strings.Contains(err.Error(), tt.wantErr) {
    				t.Errorf("parseHexUint(%q) = %v, %v; want error %q", tt.in, got, err, tt.wantErr)
    			}
    		} else {
    			if err != nil || got != tt.want {
    				t.Errorf("parseHexUint(%q) = %v, %v; want %v", tt.in, got, err, tt.want)
    			}
    		}
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top