- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for importErrorWithAPIErr (0.09 seconds)
-
cmd/admin-handlers-users.go
case err != nil: writeErrorResponseJSON(ctx, w, importErrorWithAPIErr(ctx, ErrInvalidRequest, err, allPoliciesFile, ""), r.URL) return default: defer f.Close() var allPolicies map[string]policy.Policy data, err = io.ReadAll(f) if err != nil { writeErrorResponseJSON(ctx, w, importErrorWithAPIErr(ctx, ErrInvalidRequest, err, allPoliciesFile, ""), r.URL) return }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 90.6K bytes - Click Count (0) -
cmd/admin-handler-utils.go
} return toAPIError(ctx, fmt.Errorf("error importing %s from %s with: %w", entity, fname, err)) } // wraps import error for more context func importErrorWithAPIErr(ctx context.Context, apiErr APIErrorCode, err error, fname, entity string) APIError { if entity == "" { return errorCodes.ToAPIErrWithErr(apiErr, fmt.Errorf("error importing %s with: %w", fname, err)) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 03 07:17:20 GMT 2024 - 8.4K bytes - Click Count (0)