Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toAPIError (0.18 sec)

  1. cmd/batch-handlers.go

    	if jobID == "" {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	req := &BatchJobRequest{}
    	if err := req.load(ctx, objectAPI, pathJoin(batchJobPrefix, jobID)); err != nil {
    		if !errors.Is(err, errNoSuchJob) {
    			batchLogIf(ctx, err)
    		}
    
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top