Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for errstr (0.17 sec)

  1. pkg/volume/util/operationexecutor/operation_executor.go

    	GenerateError(prefixMsg string, err error) (simpleErr, detailedErr error)
    }
    
    // Generates an error string with the format ": <err>" if err exists
    func errSuffix(err error) string {
    	errStr := ""
    	if err != nil {
    		errStr = fmt.Sprintf(": %v", err)
    	}
    	return errStr
    }
    
    // Generate a detailed error msg for logs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    	auditLogInternal(ctx, opts)
    }
    
    func joinErrs(errs []error) []string {
    	s := make([]string, len(errs))
    	for i := range s {
    		if errs[i] == nil {
    			s[i] = "<nil>"
    		} else {
    			s[i] = errs[i].Error()
    		}
    	}
    	return s
    }
    
    func (er erasureObjects) deleteIfDangling(ctx context.Context, bucket, object string, metaArr []FileInfo, errs []error, dataErrsByPart map[int][]int, opts ObjectOptions) (FileInfo, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	batchJobMetricExpire
    )
    
    func batchJobTrace(d batchJobMetric, job string, startTime time.Time, duration time.Duration, info objTraceInfoer, attempts int, err error) madmin.TraceInfo {
    	var errStr string
    	if err != nil {
    		errStr = err.Error()
    	}
    	traceType := madmin.TraceBatchReplication
    	switch d {
    	case batchJobMetricKeyRotation:
    		traceType = madmin.TraceBatchKeyRotation
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    		},
    	}
    
    	for _, tt := range testCases {
    		t.Run(tt.desc, func(t *testing.T) {
    			config, _, err := loadConfig(tt.config, false)
    			if errStr := errString(err); !strings.Contains(errStr, tt.wantErr) {
    				t.Fatalf("unexpected error state got=%s want=%s", errStr, tt.wantErr)
    			}
    			if len(tt.wantErr) > 0 {
    				return
    			}
    
    			ctx, cancel := context.WithCancel(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  5. src/net/url/url_test.go

    		}
    	}
    }
    
    func TestParseFailure(t *testing.T) {
    	// Test that the first parse error is returned.
    	const url = "%gh&%ij"
    	_, err := ParseQuery(url)
    	errStr := fmt.Sprint(err)
    	if !strings.Contains(errStr, "%gh") {
    		t.Errorf(`ParseQuery(%q) returned error %q, want something containing %q"`, url, errStr, "%gh")
    	}
    }
    
    func TestParseErrors(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  6. src/go/build/build.go

    	}
    	dir := f[0]
    	errStr := strings.TrimSpace(f[4])
    	if errStr != "" && dir == "" {
    		// If 'go list' could not locate the package (dir is empty),
    		// return the same error that 'go list' reported.
    		return errors.New(errStr)
    	}
    
    	// If 'go list' did locate the package, ignore the error.
    	// It was probably related to loading source files, and we'll
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    			usage = madmin.Usage{Size: dataUsageInfo.ObjectsTotalSize}
    		} else {
    			buckets = madmin.Buckets{Error: err.Error()}
    			objects = madmin.Objects{Error: err.Error()}
    			deleteMarkers = madmin.DeleteMarkers{Error: err.Error()}
    			usage = madmin.Usage{Error: err.Error()}
    		}
    
    		// Fetching the backend information
    		backendInfo := objectAPI.BackendInfo()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    		}
    	}
    }
    
    func replicationResyncTrace(resyncID string, startTime time.Time, duration time.Duration, path string, err error, sz int64) madmin.TraceInfo {
    	var errStr string
    	if err != nil {
    		errStr = err.Error()
    	}
    	funcName := fmt.Sprintf("replication.(resyncID=%s)", resyncID)
    	return madmin.TraceInfo{
    		TraceType: madmin.TraceReplicationResync,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  9. src/database/sql/sql_test.go

    	}
    	for n, et := range execTests {
    		_, err := stmt.Exec(et.args...)
    		errStr := ""
    		if err != nil {
    			errStr = err.Error()
    		}
    		if errStr != et.wantErr {
    			t.Errorf("stmt.Execute #%d: for %v, got error %q, want error %q",
    				n, et.args, errStr, et.wantErr)
    		}
    	}
    }
    
    func TestTxPrepare(t *testing.T) {
    	db := newTestDB(t, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/pkg.go

    )
    
    type importError struct {
    	importPath string
    	err        error // created with fmt.Errorf
    }
    
    func ImportErrorf(path, format string, args ...any) ImportPathError {
    	err := &importError{importPath: path, err: fmt.Errorf(format, args...)}
    	if errStr := err.Error(); !strings.Contains(errStr, path) {
    		panic(fmt.Sprintf("path %q not in error %q", path, errStr))
    	}
    	return err
    }
    
    func (e *importError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top