MCPcopy
hub / github.com/openfga/openfga / Error

Function Error

internal/iterator/error.go:13–15  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

11}
12
13func Error[T any](err error) storage.Iterator[T] {
14 return &errorIterator[T]{err: err}
15}
16
17func (e *errorIterator[T]) Head(ctx context.Context) (T, error) {
18 var t T

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…