Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 2,845 for error (0.02 seconds)

  1. tests/postgres_test.go

    	if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	if err := DB.Where("id = $1", yasuo.ID).First(&Yasuo{}).Error; err != nil || yasuo.Name != "jinzhu" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	yasuo.Name = "jinzhu1"
    	if err := DB.Save(&yasuo).Error; err != nil {
    		t.Errorf("Failed to update date, got error %v", err)
    	}
    
    Created: 2026-04-05 09:35
    - Last Modified: 2022-10-08 09:16
    - 6.4K bytes
    - Click Count (0)
  2. internal/config/errors-utils.go

    		if netErr, ok := err.(*net.OpError); ok {
    			return ErrPortAccess(netErr).Msg("Insufficient permissions to use specified port")
    		}
    	}
    
    	// Failed to identify what type of error this, return a simple UI error
    	return Err{msg: err.Error()}
    }
    
    // FmtError converts a fatal error message to a more clear error
    // using some colors
    func FmtError(introMsg string, err error, jsonFlag bool) string {
    Created: 2026-04-05 19:28
    - Last Modified: 2025-08-29 02:39
    - 3.8K bytes
    - Click Count (0)
  3. tests/gaussdb_test.go

    	if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	if err := DB.Where("id = $1", yasuo.ID).First(&Yasuo{}).Error; err != nil || yasuo.Name != "jinzhu" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	yasuo.Name = "jinzhu1"
    	if err := DB.Save(&yasuo).Error; err != nil {
    		t.Errorf("Failed to update date, got error %v", err)
    	}
    
    Created: 2026-04-05 09:35
    - Last Modified: 2025-07-21 02:46
    - 6.6K bytes
    - Click Count (0)
  4. internal/event/target/elasticsearch.go

    type esClient interface {
    	isAtleastV7() bool
    	createIndex(ElasticsearchArgs) error
    	ping(context.Context, ElasticsearchArgs) (bool, error)
    	stop()
    	entryExists(context.Context, string, string) (bool, error)
    	removeEntry(context.Context, string, string) error
    	updateEntry(context.Context, string, string, event.Event) error
    	addEntry(context.Context, string, event.Event) error
    }
    
    // ElasticsearchArgs - Elasticsearch target arguments.
    Created: 2026-04-05 19:28
    - Last Modified: 2025-09-28 20:59
    - 15K bytes
    - Click Count (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")
    	}
    Created: 2026-04-05 09:35
    - Last Modified: 2024-06-12 10:49
    - 7.1K bytes
    - Click Count (0)
  6. src/cmd/asm/internal/asm/testdata/arm64sveerror.s

    	PBRKPAS P14.S, P13.S, P14.M, P5.D                 // ERROR "illegal combination from SVE"
    	PBRKPB P14.S, P13.S, P14.M, P5.D                  // ERROR "illegal combination from SVE"
    	PBRKPBS P14.S, P13.S, P14.M, P5.D                 // ERROR "illegal combination from SVE"
    	PEOR P14.S, P13.S, P14.M, P5.D                    // ERROR "illegal combination from SVE"
    Created: 2026-04-07 11:13
    - Last Modified: 2026-03-20 17:02
    - 50.6K bytes
    - Click Count (0)
  7. internal/s3select/jstream/errors.go

    	context   string // additional error context
    	pos       errPos
    	atChar    byte
    	readerErr error // underlying reader error, if any
    }
    
    // ReaderErr returns the underlying error.
    func (e DecoderError) ReaderErr() error { return e.readerErr }
    
    // Error returns a string representation of the error.
    func (e DecoderError) Error() string {
    	loc := fmt.Sprintf("%s [%d,%d]", quoteChar(e.atChar), e.pos[0], e.pos[1])
    Created: 2026-04-05 19:28
    - Last Modified: 2024-09-23 19:35
    - 1.3K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java

         * Sends an exception to the user in the <b>error</b> error level.
         * The stack trace for this exception will be output when this error level is enabled.
         *
         * @param error the error that caused this log
         */
        void error(Throwable error);
    
        void error(Supplier<String> content);
    
        void error(Supplier<String> content, Throwable error);
    Created: 2026-04-05 03:35
    - Last Modified: 2024-09-28 09:03
    - 5.4K bytes
    - Click Count (0)
  9. cmd/object-api-errors.go

    	return "Object name invalid: " + e.Bucket + "/" + e.Object
    }
    
    // Error returns string an error formatted as the given text.
    func (e ObjectNameTooLong) Error() string {
    	return "Object name too long: " + e.Bucket + "/" + e.Object
    }
    
    // Error returns string an error formatted as the given text.
    func (e ObjectNamePrefixAsSlash) Error() string {
    Created: 2026-04-05 19:28
    - Last Modified: 2024-08-09 02:05
    - 22.1K bytes
    - Click Count (0)
  10. internal/config/dns/operator_dns.go

    			return ErrBucketConflict(Error{bucket, errors.New(errorString)})
    		}
    		return newError(bucket, fmt.Errorf("service create for bucket %s, failed with status %s, error %s", bucket, resp.Status, errorString))
    	}
    	return nil
    }
    
    func newError(bucket string, err error) error {
    	e := Error{bucket, err}
    	if strings.Contains(err.Error(), "invalid bucket name") {
    		return ErrInvalidBucketName(e)
    	}
    Created: 2026-04-05 19:28
    - Last Modified: 2024-11-11 14:51
    - 6.6K bytes
    - Click Count (0)
Back to Top