Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toObjectErr (0.19 sec)

  1. cmd/object-api-errors.go

    	"errors"
    	"fmt"
    	"io"
    )
    
    // Converts underlying storage error. Convenience function written to
    // handle all cases where we have known types of errors returned by
    // 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
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top