Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for error (0.18 sec)

  1. cmd/api-errors.go

    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case replication.Error:
    			apiErr = APIError{
    				Code:           "MalformedXML",
    				Description:    e.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case tags.Error:
    			apiErr = APIError{
    				Code:           e.Code(),
    				Description:    e.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case policy.Error:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  2. src/bufio/bufio_test.go

    	if err != nil {
    		t.Error("unexpected error on ReadRune (2):", err)
    	}
    	_, err = r.Read(buf)
    	if err != nil {
    		t.Error("unexpected error on Read (2):", err)
    	}
    	if r.UnreadRune() == nil {
    		t.Error("expected error after Read (2)")
    	}
    	// Test error after ReadByte.
    	_, _, err = r.ReadRune() // reset state
    	if err != nil {
    		t.Error("unexpected error on ReadRune (2):", err)
    	}
    	for range buf {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. tests/query_test.go

    		t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected)
    	}
    
    	var sub3 []User
    	if result := DB.Limit(4).Where("name = ?", users[0].Name).FindInBatches(&sub3, 2, func(tx *gorm.DB, batch int) error {
    		return nil
    	}); result.Error != nil || result.RowsAffected != 4 {
    		t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected)
    	}
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    	atomic.AddInt32(&s.scanning, 1)
    	defer atomic.AddInt32(&s.scanning, -1)
    
    	var err error
    	stopFn := globalScannerMetrics.log(scannerMetricScanBucketDrive, s.drivePath, cache.Info.Name)
    	defer func() {
    		res := make(map[string]string)
    		if err != nil {
    			res["err"] = err.Error()
    		}
    		stopFn(res)
    	}()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/object-api-multipart_test.go

    			if testCase.expectedError.Error() != actualErr.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead.", i+1, instanceType, testCase.expectedError.Error(), actualErr.Error())
    			}
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    		if actualErr == nil && testCase.shouldPass {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    	saveIAMConfig(ctx context.Context, item interface{}, path string, opts ...options) error
    	loadIAMConfig(ctx context.Context, item interface{}, path string) error
    	deleteIAMConfig(ctx context.Context, path string) error
    	savePolicyDoc(ctx context.Context, policyName string, p PolicyDoc) error
    	saveMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, mp MappedPolicy, opts ...options) error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cmd/iam.go

    		if err != nil {
    			iamLogIf(GlobalContext, fmt.Errorf("error parsing role ARN %s: %v", roleArn, err))
    			return false
    		}
    		policies = newMappedPolicy(sys.rolesMap[arn]).toSlice()
    
    	default:
    		// Otherwise, inherit parent user's policy
    		var err error
    		policies, err = sys.PolicyDBGet(parentUser, args.Groups...)
    		if err != nil {
    			iamLogIf(GlobalContext, fmt.Errorf("error fetching policies on %s: %v", parentUser, err))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  8. cmd/erasure-server-pool.go

    	derrs := make([]error, len(poolIndices))
    	dobjects := make([]ObjectInfo, len(poolIndices))
    
    	// Delete concurrently in all server pools that reported no error or read quorum error
    	// where the read quorum issue is from metadata inconsistency.
    	var wg sync.WaitGroup
    	for idx, pe := range poolIndices {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    // and perform a callback for each version in order, newest first.
    // Return errDoneForNow to stop processing and return nil.
    // Any non-nil error is returned.
    func decodeVersions(buf []byte, versions int, fn func(idx int, hdr, meta []byte) error) (err error) {
    	var tHdr, tMeta []byte // Zero copy bytes
    	for i := 0; i < versions; i++ {
    		tHdr, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  10. tests/migrate_test.go

    	if err := DB.Exec(sql).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	session := DB.Session(&gorm.Session{Logger: Tracer{
    		Logger: DB.Config.Logger,
    		Test: func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
    			sql, _ := fc()
    			if strings.HasPrefix(sql, "ALTER TABLE") {
    				t.Errorf("shouldn't execute: sql=%s", sql)
    			}
    		},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top