Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 470 for error (0.28 sec)

  1. internal/crypto/error.go

    func Errorf(format string, a ...interface{}) error {
    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.cause }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.msg == "" {
    		return "crypto: cause <nil>"
    	}
    	return e.msg
    }
    
    var (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/sts-errors.go

    )
    
    // writeSTSErrorResponse writes error headers
    func writeSTSErrorResponse(ctx context.Context, w http.ResponseWriter, errCode STSErrorCode, err error) {
    	stsErr := stsErrCodes.ToSTSErr(errCode)
    
    	// Generate error response.
    	stsErrorResponse := STSErrorResponse{}
    	stsErrorResponse.Error.Code = stsErr.Code
    	stsErrorResponse.RequestID = w.Header().Get(xhttp.AmzRequestID)
    	stsErrorResponse.Error.Message = stsErr.Description
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. tests/prepared_stmt_test.go

    			tx.Rollback()
    		}
    	}()
    	if err := tx.Error; err != nil {
    		t.Errorf("Failed to start transaction, got error %v\n", err)
    	}
    
    	if err := tx.Where("name=?", "zzjin").Delete(&User{}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    	}
    
    	if err := tx.Create(&User{Name: "zzjin"}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 07:55:43 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. tests/create_test.go

    		t.Errorf("no error should happen when auto migrate, but got %v", err)
    	}
    
    	if err := DB.Create(&EmptyStruct{}).Error; err != nil {
    		t.Errorf("No error should happen when creating user, but got %v", err)
    	}
    }
    
    func TestCreateEmptySlice(t *testing.T) {
    	data := []User{}
    	if err := DB.Create(&data).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  5. internal/kms/single-key.go

    func (secretKey) Metrics(ctx context.Context) (kes.Metric, error) {
    	return kes.Metric{}, Error{
    		HTTPStatusCode: http.StatusNotImplemented,
    		APICode:        "KMS.NotImplemented",
    		Err:            errors.New("metrics are not supported"),
    	}
    }
    
    func (kms secretKey) CreateKey(_ context.Context, keyID string) error {
    	if keyID == kms.keyID {
    		return nil
    	}
    	return Error{
    		HTTPStatusCode: http.StatusNotImplemented,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver.go

    			case err == nil:
    				log.Warn("ztunnel protocol error, unexpected message")
    				return fmt.Errorf("ztunnel protocol error, unexpected message")
    			default:
    				// we get here if error is deadline exceeded, which means ztunnel is alive.
    			}
    
    		case <-ctx.Done():
    			return nil
    		}
    	}
    }
    
    func (z *ztunnelServer) PodDeleted(ctx context.Context, uid string) error {
    	r := &zdsapi.WorkloadRequest{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  7. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  8. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  9. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 08 18:15:27 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  10. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 23.4K bytes
    - Viewed (0)
Back to top