MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / exportError

Function exportError

cmd/admin-handler-utils.go:232–237  ·  view source on GitHub ↗

wraps export error for more context

(ctx context.Context, err error, fname, entity string)

Source from the content-addressed store, hash-verified

230
231// wraps export error for more context
232func exportError(ctx context.Context, err error, fname, entity string) APIError {
233 if entity == "" {
234 return toAPIError(ctx, fmt.Errorf("error exporting %s with: %w", fname, err))
235 }
236 return toAPIError(ctx, fmt.Errorf("error exporting %s from %s with: %w", entity, fname, err))
237}
238
239// wraps import error for more context
240func importError(ctx context.Context, err error, fname, entity string) APIError {

Callers 2

ExportIAMMethod · 0.85

Calls 1

toAPIErrorFunction · 0.85

Tested by

no test coverage detected