Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 2,251 for erro (0.02 sec)

  1. tests/default_value_test.go

    	}
    
    	DB.Migrator().DropTable(&Harumph{})
    
    	if err := DB.AutoMigrate(&Harumph{}); err != nil {
    		t.Fatalf("Failed to migrate with default value, got error: %v", err)
    	}
    
    	harumph := Harumph{Email: "******@****.***"}
    	if err := DB.Create(&harumph).Error; err != nil {
    		t.Fatalf("Failed to create data with default value, got error: %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. internal/s3select/simdj/errors.go

    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. cmd/update_test.go

    	}
    
    	for i, testCase := range testCases {
    		sha256Sum, result, releaseInfo, err := parseReleaseData(testCase.data)
    		if !testCase.expectedErr {
    			if err != nil {
    				t.Errorf("error case %d: expected no error, got: %v", i+1, err)
    			}
    		} else if err == nil {
    			t.Errorf("error case %d: expected error got: %v", i+1, err)
    		}
    		if err == nil {
    			if hex.EncodeToString(sha256Sum) != testCase.expectedSha256hex {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. istioctl/pkg/admin/istiodconfig.go

    	case "json", "yaml":
    		outputBytes, err := json.MarshalIndent(&resultScopeLogLevel, "", "  ")
    		outputBytes = append(outputBytes, []byte("\n")...)
    		if err != nil {
    			return err
    		}
    		if ga.outputFormat == "yaml" {
    			if outputBytes, err = yaml.JSONToYAML(outputBytes); err != nil {
    				return err
    			}
    		}
    		_, err = out.Write(outputBytes)
    		return err
    	default:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. tests/associations_has_one_test.go

    	user := User{Name: "jinzhu", Account: Account{Number: "1"}}
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	if err := DB.Model(&user).Association("Languages").Replace(Account{Number: "2"}); err == nil {
    		t.Error("expected association error to be not nil")
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. internal/grid/msg_gen.go

    			err = dc.ReadExactBytes((z.ID)[:])
    			if err != nil {
    				err = msgp.WrapError(err, "ID")
    				return
    			}
    		case "Host":
    			z.Host, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Host")
    				return
    			}
    		case "Time":
    			z.Time, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "Time")
    				return
    			}
    		case "Token":
    			z.Token, err = dc.ReadString()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. internal/cachevalue/cache.go

    			return *v, nil
    		}
    	}
    
    	if err := t.update(ctx); err != nil {
    		var empty T
    		return empty, err
    	}
    
    	return *t.val.Load(), nil
    }
    
    // Get will return a cached value or fetch a new one.
    // Tf the Update function returns an error the value is forwarded as is and not cached.
    func (t *Cache[T]) Get() (T, error) {
    	return t.GetWithCtx(context.Background())
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. cmd/object-api-multipart_test.go

    	}
    
    	err = obj.MakeBucket(context.Background(), "abc", MakeBucketOptions{})
    	if err != nil {
    		// Failed to create newbucket, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	resN, err := obj.NewMultipartUpload(context.Background(), "abc", "def", opts)
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  9. cmd/notification.go

    		defer g.workers.Give()
    
    		g.errs[index] = NotificationPeerErr{
    			Host: addr,
    		}
    
    		retryCount := g.retryCount
    		for i := 0; i < retryCount; i++ {
    			g.errs[index].Err = nil
    			if err := f(); err != nil {
    				g.errs[index].Err = err
    
    				if contextCanceled(ctx) {
    					// context already canceled no retries.
    					retryCount = 0
    				}
    
    				// Last iteration log the error.
    				if i == retryCount-1 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  10. internal/s3select/jstream/decoder_test.go

    	}
    
    	err := decoder.Err()
    	t.Logf("got error: %s", err)
    	if err == nil {
    		t.Fatalf("missing expected decoder error")
    	}
    
    	derr, ok := err.(DecoderError)
    	if !ok {
    		t.Fatalf("expected error of type DecoderError, got %T", err)
    	}
    
    	if derr.ReaderErr() == nil {
    		t.Fatalf("missing expected underlying reader error")
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top