Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,811 for error (0.2 sec)

  1. tests/hooks_test.go

    		t.Fatalf("An error from before delete callbacks happened")
    	}
    
    	p4 := Product{Code: "after_save_error", Price: 100}
    	DB.Save(&p4)
    	if err := DB.First(&Product{}, "code = ?", "after_save_error").Error; err == nil {
    		t.Fatalf("Record should be reverted if get an error in after save callback")
    	}
    
    	p5 := Product{Code: "after_delete_error", Price: 100}
    	DB.Save(&p5)
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. tests/associations_has_one_test.go

    	if err := DB.Model(&user2).Association("Account").Append(&account); err != nil {
    		t.Fatalf("Error happened when append Account, got %v", err)
    	}
    
    	AssertAssociationCount(t, user2, "Account", 1, "after prepare data")
    
    	// Clear
    	if err := DB.Model(&user2).Association("Account").Clear(); err != nil {
    		t.Errorf("Error happened when clear Account, got %v", err)
    	}
    
    	AssertAssociationCount(t, user2, "Account", 0, "after clear")
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/riscv64error.s

    	MOVF	$1, X5				// ERROR "unsupported constant load"
    	MOVBU	X5, (X6)			// ERROR "unsupported unsigned store"
    	MOVHU	X5, (X6)			// ERROR "unsupported unsigned store"
    	MOVWU	X5, (X6)			// ERROR "unsupported unsigned store"
    	MOVF	F0, F1, F2			// ERROR "illegal MOV instruction"
    	MOVD	F0, F1, F2			// ERROR "illegal MOV instruction"
    	MOV	X10, X11, X12			// ERROR "illegal MOV instruction"
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Apr 07 03:32:27 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    -----------------
    failure for all cases.
    
    // Pseudo code for managing `format.json`.
    
    // Generic checks.
    if (no quorum) return error
    if (any disk is corrupt) return error // Always error
    if (jbod inconsistent) return error // Always error.
    if (disks not recognized) // Always error.
    
    // Specific checks.
    if (all disks online)
      if (all disks return format.json)
         if (jbod consistent)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  5. internal/s3select/sql/aggregation.go

    	return e.Expression.aggregateRow(r, tableAlias)
    }
    
    func (e *Expression) aggregateRow(r Record, tableAlias string) error {
    	for _, ex := range e.And {
    		err := ex.aggregateRow(r, tableAlias)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func (e *ListExpr) aggregateRow(r Record, tableAlias string) error {
    	for _, ex := range e.Elements {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. 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 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  7. internal/rest/client_test.go

    				if errors.As(n, &netErrInterface) != tt.want {
    					t.Errorf("errors.As(n, &tt.target) != tt.want, n: %#v, target: %#v, want:%v, got: %v", n, tt.target, tt.want, !tt.want)
    				}
    			} else {
    				if errors.As(n, &tt.target) != tt.want {
    					t.Errorf("errors.As(n, &tt.target) != tt.want, n: %#v, target: %#v, want:%v, got: %v", n, tt.target, tt.want, !tt.want)
    				}
    			}
    		})
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  8. cmd/erasure-healing.go

    			case errFileNotFound.Error():
    				fallthrough
    			case errVolumeNotFound.Error():
    				fallthrough
    			case errFileVersionNotFound.Error():
    				continue
    			}
    		}
    		return false
    	}
    	return len(errs) > 0
    }
    
    // isAllBucketsNotFound will return true if all the errors are either errFileNotFound
    // or errFileCorrupt
    // A 0 length slice will always return false.
    func isAllBucketsNotFound(errs []error) bool {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 08 09:26:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  9. cmd/metacache-stream.go

    // The returned channel should be closed when done.
    // Any error is reported when closing the metacacheWriter.
    func (w *metacacheWriter) stream() (chan<- metaCacheEntry, error) {
    	if w.creator != nil {
    		err := w.creator()
    		w.creator = nil
    		if err != nil {
    			return nil, fmt.Errorf("metacacheWriter: unable to create writer: %w", err)
    		}
    		if w.mw == nil {
    			return nil, errors.New("metacacheWriter: writer not initialized")
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  10. internal/grid/errors.go

    	ErrIncorrectSequence = errors.New("out-of-sequence item received")
    )
    
    // ErrResponse is a remote error response.
    type ErrResponse struct {
    	msg string
    }
    
    func (e ErrResponse) Error() string {
    	return fmt.Sprintf("remote: %s", e.msg)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
Back to top