Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 865 for errC (0.02 sec)

  1. cmd/bucket-lifecycle-handlers.go

    		return
    	}
    
    	// Check if bucket exists.
    	rcfg, err := globalBucketObjectLockSys.Get(bucket)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	bucketLifecycle, err := lifecycle.ParseLifecycleConfigWithID(io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser_test.go

    	s := bytes.NewBuffer([]byte("S3Object.words.*.id"))
    	// s := bytes.NewBuffer([]byte("COUNT(Id)"))
    	lex, err := sqlLexer.Lex(s)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tokens, err := lexer.ConsumeAll(lex)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// for i, t := range tokens {
    	// 	fmt.Printf("%d: %#v\n", i, t)
    	// }
    	if len(tokens) != 7 {
    		t.Fatalf("Expected 7 got %d", len(tokens))
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. cmd/warm-backend-gcs.go

    	if gcs.StorageClass != "" {
    		w.ObjectAttrs.StorageClass = gcs.StorageClass
    	}
    	w.ObjectAttrs.Metadata = meta
    	if _, err := xioutil.Copy(w, data); err != nil {
    		return "", gcsToObjectError(err, gcs.Bucket, key)
    	}
    
    	if _, err := xioutil.Copy(w, data); err != nil {
    		return "", gcsToObjectError(err, gcs.Bucket, key)
    	}
    
    	return "", w.Close()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. cmd/background-newdisks-heal-ops_gen_test.go

    	v := healingTracker{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. internal/s3select/simdj/reader.go

    					}
    					err = fmt.Errorf("unexpected json type below root :%v", typ)
    					r.err = &err
    					return
    				}
    
    				o, err := obj.Object(&tmpObj)
    				if err != nil {
    					r.err = &err
    					return
    				}
    				select {
    				case <-r.exitReader:
    					return
    				case r.decoded <- *o:
    				}
    			default:
    				err = fmt.Errorf("unexpected root json type:%v", typ)
    				r.err = &err
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 30 17:02:22 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. cmd/os-readdir_test.go

    	// Check non existent directory.
    	if _, err := readDir("/tmp/non-existent-directory"); err != errFileNotFound {
    		t.Fatalf("expected = %s, got: %s", errFileNotFound, err)
    	}
    
    	file := path.Join(os.TempDir(), "issue")
    	if err := os.WriteFile(file, []byte(""), 0o644); err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(file)
    
    	// Check if file is given.
    	if _, err := readDir(path.Join(file, "mydir")); err != errFileNotFound {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  7. cmd/os-instrumented.go

    	}
    }
    
    // RemoveAll captures time taken to call the underlying os.RemoveAll
    func RemoveAll(dirPath string) (err error) {
    	defer updateOSMetrics(osMetricRemoveAll, dirPath)(err)
    	return os.RemoveAll(dirPath)
    }
    
    // Mkdir captures time taken to call os.Mkdir
    func Mkdir(dirPath string, mode os.FileMode) (err error) {
    	defer updateOSMetrics(osMetricMkdir, dirPath)(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    **FastAPI** faz uso dele para que você veja o erro no seu log, caso você utilize um modelo de Pydantic em `response_model`, e seus dados tenham erro.
    
    Contudo, o cliente ou usuário não terão acesso a ele. Ao contrário, o cliente receberá um "Internal Server Error" com o HTTP status code `500`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. cmd/batch-rotate.go

    	if err := r.Encryption.Validate(); err != nil {
    		return err
    	}
    
    	for _, tag := range r.Flags.Filter.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range r.Flags.Filter.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    
    	return r.Flags.Retry.Validate()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. internal/event/target/nats.go

    func (target *NATSTarget) Save(eventData event.Event) error {
    	if target.store != nil {
    		_, err := target.store.Put(eventData)
    		return err
    	}
    
    	if err := target.init(); err != nil {
    		return err
    	}
    
    	_, err := target.isActive()
    	if err != nil {
    		return err
    	}
    	return target.send(eventData)
    }
    
    // send - sends an event to the Nats.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top