- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 289 for Errorfs (0.04 sec)
-
cmd/object-api-errors.go
func isErrBucketNotFound(err error) bool { if errors.Is(err, errVolumeNotFound) { return true } var bkNotFound BucketNotFound return errors.As(err, &bkNotFound) } // isErrReadQuorum check if the error type is InsufficientReadQuorum func isErrReadQuorum(err error) bool { var rquorum InsufficientReadQuorum return errors.As(err, &rquorum) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 09 02:05:14 UTC 2024 - 22.1K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
Der Exceptionhandler wird einen `Request` und die Exception entgegennehmen. {* ../../docs_src/handling_errors/tutorial004.py hl[2,14:16] *} Wenn Sie nun `/items/foo` besuchen, erhalten Sie statt des Default-JSON-Errors: ```JSON { "detail": [ { "loc": [ "path", "item_id" ], "msg": "value is not a valid integer",
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 10.4K bytes - Viewed (0) -
tests/hooks_test.go
if err := DB.Create(&product).Error; err == nil { t.Errorf("should got failed to save, but error is nil") } if DB.First(&Product4{}, "name = ?", product.Name).Error == nil { t.Errorf("should got RecordNotFound, but got nil") } product = Product4{Name: "Product-2", Price: 100, Item: ProductItem{Code: "valid"}} if err := DB.Create(&product).Error; err != nil { t.Errorf("should create product, but got error %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
tests/scanner_valuer_test.go
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
tests/create_test.go
} if u1.ID == 0 { t.Errorf("user's primary key should has value after create, got : %v", u1.ID) } if u1.CreatedAt.IsZero() { t.Errorf("user's created at should be not zero") } if u1.UpdatedAt.IsZero() { t.Errorf("user's updated at should be not zero") } var newUser User if err := DB.Where("id = ?", u1.ID).First(&newUser).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 09:55:20 UTC 2025 - 26.8K bytes - Viewed (0) -
tests/preload_test.go
if user.Account.Number != "" { t.Errorf("No account should found for user %v but got %v", idx+2, user.Account.Number) } } CheckUser(t, users2[0], users[0]) var users3 []User if err := DB.Preload("Account", func(tx *gorm.DB) *gorm.DB { return tx.Table("accounts AS a").Select("a.*") }).Find(&users3, "id IN ?", userIDs).Error; err != nil { t.Errorf("failed to query, got error %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
cmd/prepare-storage.go
if err := checkDiskFatalErrs(sErrs); err != nil { return nil, err } for i, err := range sErrs { if err != nil && !errors.Is(err, errXLBackend) && !errors.Is(err, errUnformattedDisk) { if errors.Is(err, errDiskNotFound) && verboseLogging { if globalEndpoints.NEndpoints() > 1 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 11.1K bytes - Viewed (1) -
cmd/format-erasure.go
return "", err } if meta.Version != formatMetaVersionV1 { return "", fmt.Errorf(`format.Version expected: %s, got: %s`, formatMetaVersionV1, meta.Version) } if meta.Format != formatBackendErasure && meta.Format != formatBackendErasureSingle {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 23.1K bytes - Viewed (0) -
tests/associations_has_many_test.go
t.Errorf("failed to clear contents association, got error: %v", err) } if count := tx.Model(&item).Association("Contents").Count(); count != 0 { t.Errorf("expected %d contents, got %d", 0, count) } if err := tx.Find(&contents).Error; err != nil { t.Errorf("failed to find contents, got error: %v", err) } if len(contents) != 0 { t.Errorf("expected %d contents, got %d", 0, len(contents))
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
cmd/global-heal.go
} jt.Take() go healEntry(bucket, *entry) }, finished: func(errs []error) { success := countErrs(errs, nil) if success < len(disks)/2+1 { retErr = fmt.Errorf("one or more errors reported during listing: %v", errors.Join(errs...)) } }, }) jt.Wait() // synchronize all the concurrent heal jobs if err != nil { // Set this such that when we return this function
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Apr 04 13:49:12 UTC 2025 - 16.2K bytes - Viewed (0)