Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 888 for error (0.28 sec)

  1. istioctl/pkg/multicluster/remote_secret_test.go

    			Name: "foo",
    		},
    	}
    
    	w := &fakeOutputWriter{failAfter: 0, injectError: errors.New("error")}
    	if err := writeEncodedObject(w, s); err == nil {
    		t.Error("want error on local write failure")
    	}
    
    	w = &fakeOutputWriter{failAfter: 1, injectError: errors.New("error")}
    	if err := writeEncodedObject(w, s); err == nil {
    		t.Error("want error on remote write failure")
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    		return errFileCorrupt
    	case errUnexpected.Error():
    		return errUnexpected
    	case errDiskFull.Error():
    		return errDiskFull
    	case errVolumeNotFound.Error():
    		return errVolumeNotFound
    	case errVolumeExists.Error():
    		return errVolumeExists
    	case errFileNotFound.Error():
    		return errFileNotFound
    	case errFileVersionNotFound.Error():
    		return errFileVersionNotFound
    	case errFileNameTooLong.Error():
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    		// Single requests should have remote errors.
    		_, err := remoteConn.Request(context.Background(), handlerTest, []byte(testPayload))
    		if v, ok := err.(*RemoteErr); !ok || v.Error() != "Invalid Handler for type" {
    			t.Fatalf("Unexpected error: %v, %T", err, err)
    		}
    		// Streams should not be able to set up until registered.
    		// Thus, the error is a local error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  4. cmd/format-erasure.go

    	return json.Marshal(formatV3)
    }
    
    // countErrs - count a specific error.
    func countErrs(errs []error, err error) int {
    	i := 0
    	for _, err1 := range errs {
    		if err1 == err || errors.Is(err1, err) {
    			i++
    		}
    	}
    	return i
    }
    
    // Does all errors indicate we need to initialize all disks?.
    func shouldInitErasureDisks(errs []error) bool {
    	return countErrs(errs, errUnformattedDisk) == len(errs)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. tests/transaction_test.go

    	if err := DB.Transaction(func(tx *gorm.DB) error {
    		return nil
    	}); err == nil {
    		t.Errorf("should returns error when commit with closed conn, got error %v", err)
    	}
    
    	if err := DB.Session(&gorm.Session{PrepareStmt: true}).Transaction(func(tx *gorm.DB) error {
    		return nil
    	}); err == nil {
    		t.Errorf("should returns error when commit with closed conn, got error %v", err)
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. cmd/peer-s3-client.go

    	HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error)
    	GetBucketInfo(ctx context.Context, bucket string, opts BucketOptions) (BucketInfo, error)
    	MakeBucket(ctx context.Context, bucket string, opts MakeBucketOptions) error
    	DeleteBucket(ctx context.Context, bucket string, opts DeleteBucketOptions) error
    
    	GetHost() string
    	SetPools([]int)
    	GetPools() []int
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  7. tests/preload_suits_test.go

    		t.Error(err)
    	}
    
    	lvl := &Level3{}
    	if err := DB.Save(lvl).Error; err != nil {
    		t.Error(err)
    	}
    
    	sublvl1 := &Level4{Level3ID: lvl.ID}
    	if err := DB.Save(sublvl1).Error; err != nil {
    		t.Error(err)
    	}
    	sublvl2 := &Level4{Level3ID: lvl.ID}
    	if err := DB.Save(sublvl2).Error; err != nil {
    		t.Error(err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
  8. tests/update_test.go

    	if err := DB.Model(&User{}).Update("name", "jinzhu").Error; err == nil || !errors.Is(err, gorm.ErrMissingWhereClause) {
    		t.Errorf("should returns missing WHERE clause while updating error, got err %v", err)
    	}
    
    	if err := DB.Session(&gorm.Session{AllowGlobalUpdate: true}).Model(&User{}).Update("name", "jinzhu").Error; err != nil {
    		t.Errorf("should returns no error while enable global update, but got err %v", err)
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  9. internal/rest/client.go

    	online
    	closed
    )
    
    // NetworkError - error type in case of errors related to http/transport
    // for ex. connection refused, connection reset, dns resolution failure etc.
    // All errors returned by storage-rest-server (ex errFileNotFound, errDiskNotFound) are not considered to be network errors.
    type NetworkError struct {
    	Err error
    }
    
    func (n *NetworkError) Error() string {
    	return n.Err.Error()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/armerror.s

    	MOVW	errors(SB), F0     // ERROR "illegal combination"
    	MOVW	$20, errors(SB)    // ERROR "illegal combination"
    	MOVW	errors(SB), $20    // ERROR "illegal combination"
    	MOVW	(R1), [R0-R4]      // ERROR "illegal combination"
    	MOVW	[R0-R4], (R1)      // ERROR "illegal combination"
    	MOVB	$245, R1           // ERROR "illegal combination"
    	MOVH	$245, R1           // ERROR "illegal combination"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 03 14:06:21 GMT 2017
    - 14.4K bytes
    - Viewed (0)
Back to top