Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for unwrapAll (0.25 sec)

  1. cmd/erasure-healing-common.go

    			onlineDisks[index] = nil
    		}
    	}
    
    	return onlineDisks, modTime, ""
    }
    
    // Convert verify or check parts returned error to integer representation
    func convPartErrToInt(err error) int {
    	err = unwrapAll(err)
    	switch err {
    	case nil:
    		return checkPartSuccess
    	case errFileNotFound, errFileVersionNotFound:
    		return checkPartFileNotFound
    	case errFileCorrupt:
    		return checkPartFileCorrupt
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    	if !ok {
    		return "", fmt.Errorf("id_token not found!")
    	}
    
    	// fmt.Printf("TOKEN: %s\n", rawIDToken)
    	return rawIDToken, nil
    }
    
    // unwrapAll will unwrap the returned error completely.
    func unwrapAll(err error) error {
    	for {
    		werr := errors.Unwrap(err)
    		if werr == nil {
    			return err
    		}
    		err = werr
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. cmd/object-api-errors.go

    // underlying storage layer.
    func toObjectErr(oerr error, params ...string) error {
    	if oerr == nil {
    		return nil
    	}
    
    	// Unwarp the error first
    	err := unwrapAll(oerr)
    
    	if err == context.Canceled {
    		return context.Canceled
    	}
    
    	switch err.Error() {
    	case errVolumeNotFound.Error():
    		apiErr := BucketNotFound{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 22:19:00 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. cmd/storage-rest-server.go

    }
    
    func (s *storageRESTServer) getStorage() StorageAPI {
    	return getStorageViaEndpoint(s.endpoint)
    }
    
    func (s *storageRESTServer) writeErrorResponse(w http.ResponseWriter, err error) {
    	err = unwrapAll(err)
    	switch err {
    	case errDiskStale:
    		w.WriteHeader(http.StatusPreconditionFailed)
    	case errFileNotFound, errFileVersionNotFound:
    		w.WriteHeader(http.StatusNotFound)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    	if contextCanceled(ctx) && errors.Is(ctx.Err(), context.Canceled) {
    		return ErrClientDisconnected
    	}
    
    	// Unwrap the error first
    	err = unwrapAll(err)
    
    	switch err {
    	case errInvalidArgument:
    		apiErr = ErrAdminInvalidArgument
    	case errNoSuchPolicy:
    		apiErr = ErrAdminNoSuchPolicy
    	case errNoSuchUser:
    		apiErr = ErrAdminNoSuchUser
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top